mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
18 lines
456 B
JavaScript
18 lines
456 B
JavaScript
const Command = require('../../framework/Command');
|
|
const facts = require('../../assets/json/xiao-fact');
|
|
|
|
module.exports = class XiaoFactCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'xiao-fact',
|
|
aliases: ['iao-fact', 'bot-fact', 'easter-egg'],
|
|
group: 'random-res',
|
|
description: 'Responds with a random fact about Xiao.'
|
|
});
|
|
}
|
|
|
|
run(msg) {
|
|
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
|
|
}
|
|
};
|