1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
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());
}
}
};
|