blob: 2496ef3a53e4f4a47753dc557d7bbe7d52d9607d (
plain) (
blame)
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
|
const atquotes = require('at-quotes');
const { Command } = require('discord.js-commando');
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
}
});
}
run(msg, args) {
if (!args.length) {
msg.reply(atquotes.getQuote());
} else if (args[0] == 'finn') {
msg.reply(atquotes.getFinnQuote());
} else if (args[0] == 'jake') {
msg.reply(atquotes.getJakeQuote());
} else if (args[0] == 'ice-king') {
msg.reply(atquotes.getIceKingQuote());
}
}
};
|