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