diff options
Diffstat (limited to 'commands/fun/quote.js')
| -rw-r--r-- | commands/fun/quote.js | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/commands/fun/quote.js b/commands/fun/quote.js index 6ad0f89..2e0d2c9 100644 --- a/commands/fun/quote.js +++ b/commands/fun/quote.js @@ -13,17 +13,25 @@ module.exports = class QuoteFun extends Command { throttling: { usages: 5, duration: 30 - } + }, + examples: ['s5n!quote', 's5n!quote finn'], + args: [ + { + key: 'atCharacter', + prompt: 'would u like a specific character? (finn, jake, ice king, no)', + type: 'string' + } + ] }); } - run(msg, args) { - if (!args.length) { + run(msg, { atCharacter }) { + if (!atCharacter || atCharacter == 'no' || atCharacter == 'n') { msg.reply(atquotes.getQuote() + ' ' + emoji.random()); - } else if (args[0] == 'finn') { + } else if (atCharacter == 'finn' || atCharacter == 'f') { msg.reply(atquotes.getFinnQuote() + ' ' + emoji.random()); - } else if (args[0] == 'jake') { + } else if (atCharacter == 'jake' || atCharacter == 'j') { msg.reply(atquotes.getJakeQuote() + ' ' + emoji.random()); - } else if (args[0] == 'ice-king') { + } else if (atCharacter == 'ice king' || atCharacter == 'ik') { msg.reply(atquotes.getIceKingQuote() + ' ' + emoji.random()); } } |