mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
19 lines
514 B
JavaScript
19 lines
514 B
JavaScript
const Command = require('../../structures/Command');
|
|
const fortunes = require('../../assets/json/fortune');
|
|
|
|
module.exports = class FortuneCookieCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'fortune',
|
|
group: 'response',
|
|
memberName: 'fortune',
|
|
description: 'Fortune Cookie.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
const fortune = fortunes[Math.floor(Math.random() * fortunes.length)];
|
|
return msg.say(fortune);
|
|
}
|
|
};
|