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
39
40
41
42
43
44
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());
}
}
};
|