Throttling for certain commands

This commit is contained in:
Daniel Odendahl Jr
2017-03-31 00:42:35 +00:00
parent ad57c32484
commit 5410c97f2c
4 changed files with 17 additions and 1 deletions
+4
View File
@@ -10,6 +10,10 @@ module.exports = class MathGameCommand extends commando.Command {
memberName: 'mathgame',
description: 'See how fast you can answer a math problem in a given time limit. (;mathgame easy)',
examples: [';mathgame easy', ';mathgame medium', ';mathgame hard', ';mathgame extreme'],
throttling: {
usages: 1,
duration: 10
},
args: [{
key: 'difficulty',
prompt: 'What difficulty should the math game be? easy, medium, hard, or extreme?',
+5 -1
View File
@@ -12,7 +12,11 @@ module.exports = class QuizCommand extends commando.Command {
group: 'games',
memberName: 'quiz',
description: 'Answer a quiz question. (;quiz)',
examples: [';quiz']
examples: [';quiz'],
throttling: {
usages: 1,
duration: 15
},
});
}
+4
View File
@@ -9,6 +9,10 @@ module.exports = class TypingGameCommand extends commando.Command {
memberName: 'typinggame',
description: 'See how fast you can type a sentence in a given time limit. (;typinggame easy)',
examples: [';typinggame easy', ';typinggame medium', ';typinggame hard', ';typinggame extreme'],
throttling: {
usages: 1,
duration: 25
},
args: [{
key: 'difficulty',
prompt: 'What difficulty should the typing game be? Easy, Medium, Hard, or Extreme?',
+4
View File
@@ -17,6 +17,10 @@ module.exports = class PruneCommand extends commando.Command {
description: 'Deletes a defined number of messages from the current channel, up to 99. (;prune 45)',
examples: [";prune 45"],
guildOnly: true,
throttling: {
usages: 1,
duration: 60
},
args: [{
key: 'count',
prompt: 'How many messages do you want to delete? Limit of up to 99.',