summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-04-15 17:07:20 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2017-04-15 17:07:20 +0200
commit795126408fc717a11d832f412470597377d71449 (patch)
treee81700812c75453d1fcf80c296e0a07b84ae449c /commands
parent0564241327ecc6eb08cd716f510ebb0afbb3eeb3 (diff)
downloaddiscordbot-795126408fc717a11d832f412470597377d71449.tar.gz
discordbot-795126408fc717a11d832f412470597377d71449.zip
implement basic functionality
Diffstat (limited to 'commands')
-rw-r--r--commands/vainsocial/match.js8
-rw-r--r--commands/vainsocial/matches.js4
-rw-r--r--commands/vainsocial/user.js4
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
} ]
});
}