import atquotes from 'at-quotes'; import { Command, CommandoMessage } from 'discord.js-commando'; import emoji from 'emoji-random'; module.exports = class QuoteFun extends Command { constructor(client) { super(client, { name: 'quote', aliases: ['quotes'], group: 'fun', memberName: 'quote', description: 'Gives you a random quote from Adventure Time.', throttling: { usages: 5, duration: 30 }, examples: [ 'uwu!quote', 'uwu!qutoes', 'uwu!quote finn', 'uwu!quotes ice king' ], args: [ { key: 'atCharacter', prompt: 'Would you like a specific character? (Finn, Jake, Ice King, No)', type: 'string' } ], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] }); } run(msg: CommandoMessage, { atCharacter }) { if (!atCharacter || atCharacter == 'no' || atCharacter == 'n') { msg.reply(atquotes.getQuote() + ' ' + emoji.random()); } else if (atCharacter == 'finn' || atCharacter == 'f') { msg.reply(atquotes.getFinnQuote() + ' ' + emoji.random()); } else if (atCharacter == 'jake' || atCharacter == 'j') { msg.reply(atquotes.getJakeQuote() + ' ' + emoji.random()); } else if (atCharacter == 'ice king' || atCharacter == 'ik') { msg.reply(atquotes.getIceKingQuote() + ' ' + emoji.random()); } } };