mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
19 lines
461 B
JavaScript
19 lines
461 B
JavaScript
const Command = require('../../structures/Command');
|
|
const quotes = require('../../assets/json/quote');
|
|
|
|
module.exports = class QuoteCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'quote',
|
|
group: 'random',
|
|
memberName: 'quote',
|
|
description: 'Responds with a random quote.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const quote = quotes[Math.floor(Math.random() * quotes.length)];
|
|
return msg.say(`${quote.quote} - _${quote.author}_`);
|
|
}
|
|
};
|