mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Xiao Fact Command
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const Command = require('../../structures/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'],
|
||||
group: 'random-res',
|
||||
memberName: 'xiao-fact',
|
||||
description: 'Responds with a random fact about Xiao.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user