Files
xiao/commands/random-res/xiao-fact.js
T
2024-05-21 21:02:12 -04:00

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)]);
}
};