Update to latest

This commit is contained in:
Daniel Odendahl Jr
2017-11-02 22:42:12 +00:00
parent 96c762a552
commit 7560246f26
37 changed files with 89 additions and 120 deletions
+9 -2
View File
@@ -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));
}
};