const atquotes = require('at-quotes'); const { Command } = require('discord.js-commando'); const emoji = require('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: ['s5n!quote', 's5n!quote finn'], args: [ { key: 'atCharacter', prompt: 'would u like a specific character? (finn, jake, ice king, no)', type: 'string' } ] }); } run(msg, { 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()); } } };