mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 22:01:54 +02:00
Throttling for certain commands
This commit is contained in:
@@ -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?',
|
||||
|
||||
@@ -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
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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?',
|
||||
|
||||
@@ -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.',
|
||||
|
||||
Reference in New Issue
Block a user