diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 17:07:20 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 17:07:20 +0200 |
| commit | 795126408fc717a11d832f412470597377d71449 (patch) | |
| tree | e81700812c75453d1fcf80c296e0a07b84ae449c /commands | |
| parent | 0564241327ecc6eb08cd716f510ebb0afbb3eeb3 (diff) | |
| download | discordbot-795126408fc717a11d832f412470597377d71449.tar.gz discordbot-795126408fc717a11d832f412470597377d71449.zip | |
implement basic functionality
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/vainsocial/match.js | 8 | ||||
| -rw-r--r-- | commands/vainsocial/matches.js | 4 | ||||
| -rw-r--r-- | commands/vainsocial/user.js | 4 |
3 files changed, 12 insertions, 4 deletions
diff --git a/commands/vainsocial/match.js b/commands/vainsocial/match.js index 14b06a2..c8167ea 100644 --- a/commands/vainsocial/match.js +++ b/commands/vainsocial/match.js @@ -25,13 +25,17 @@ module.exports = class ShowMatchCommand extends Commando.Command { key: "name", label: "name", prompt: "Please specify your in game name (Case Sensitive).", - type: "string" + type: "string", + min: 3, + max: 16 }, { key: "number", label: "number", prompt: "Please specify how far you want to go back in history. Use 1 or leave out for the latest match.", type: "integer", - default: 1 + default: 1, + min: 1, + max: 10 } ] }); } diff --git a/commands/vainsocial/matches.js b/commands/vainsocial/matches.js index 2660d73..3f2de2f 100644 --- a/commands/vainsocial/matches.js +++ b/commands/vainsocial/matches.js @@ -24,7 +24,9 @@ module.exports = class ShowMatchesCommand extends Commando.Command { key: "name", label: "name", prompt: "Please specify your in game name (Case Sensitive).", - type: "string" + type: "string", + min: 3, + max: 16 } ] }); } diff --git a/commands/vainsocial/user.js b/commands/vainsocial/user.js index f544a5e..1f41c12 100644 --- a/commands/vainsocial/user.js +++ b/commands/vainsocial/user.js @@ -23,7 +23,9 @@ module.exports = class ShowUserCommand extends Commando.Command { key: "name", label: "name", prompt: "Please specify your in game name (Case Sensitive).", - type: "string" + type: "string", + min: 3, + max: 16 } ] }); } |
