mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 18:29:14 +02:00
Update to latest
This commit is contained in:
@@ -8,6 +8,13 @@ module.exports = class RepeatCommand extends Command {
|
||||
memberName: 'repeat',
|
||||
description: 'Repeat text over and over and over and over (etc).',
|
||||
args: [
|
||||
{
|
||||
key: 'amount',
|
||||
prompt: 'How many times do you want to repeat your text?',
|
||||
type: 'integer',
|
||||
min: 1,
|
||||
max: 2000
|
||||
},
|
||||
{
|
||||
key: 'text',
|
||||
prompt: 'What text would you like to repeat over and over and over and over?',
|
||||
@@ -21,7 +28,7 @@ module.exports = class RepeatCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
return msg.say(text.repeat(2000).substr(0, 2000));
|
||||
run(msg, { amount, text }) {
|
||||
return msg.say(text.repeat(amount).substr(0, 2000));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user