mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Changes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const snekfetch = require('snekfetch');
|
||||
|
||||
module.exports = class QuoteCommand extends Command {
|
||||
@@ -8,18 +7,13 @@ module.exports = class QuoteCommand extends Command {
|
||||
name: 'quote',
|
||||
group: 'random-res',
|
||||
memberName: 'quote',
|
||||
description: 'Responds with a random quote.',
|
||||
clientPermissions: ['EMBED_LINKS']
|
||||
description: 'Responds with a random quote.'
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const { body } = await snekfetch
|
||||
.get('https://talaikis.com/api/quotes/random/');
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x9797FF)
|
||||
.setAuthor(body.author)
|
||||
.setDescription(body.quote);
|
||||
return msg.embed(embed);
|
||||
return msg.say(`${body.quote} - _${body.author}_`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user