mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Updates
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
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}_`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user