Files
xiao/commands/random-res/quote.js
T
Daniel Odendahl Jr b8a3877863 Changes
2017-08-18 19:06:11 +00:00

20 lines
478 B
JavaScript

const Command = require('../../structures/Command');
const snekfetch = require('snekfetch');
module.exports = class QuoteCommand extends Command {
constructor(client) {
super(client, {
name: 'quote',
group: 'random-res',
memberName: 'quote',
description: 'Responds with a random quote.'
});
}
async run(msg) {
const { body } = await snekfetch
.get('https://talaikis.com/api/quotes/random/');
return msg.say(`${body.quote} - _${body.author}_`);
}
};