summaryrefslogtreecommitdiff
path: root/src/commands/fun/quote.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/fun/quote.js')
-rw-r--r--src/commands/fun/quote.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/commands/fun/quote.js b/src/commands/fun/quote.js
new file mode 100644
index 0000000..4a19a31
--- /dev/null
+++ b/src/commands/fun/quote.js
@@ -0,0 +1,40 @@
+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 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, { 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());
+ }
+ }
+}; \ No newline at end of file