mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-10 19:04:42 +02:00
Bunny Fact Command
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const facts = require('../../assets/json/bunny-fact');
|
||||
|
||||
module.exports = class BunnyFactCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'bunny-fact',
|
||||
aliases: ['bun-fact', 'rabbit-fact'],
|
||||
group: 'random-res',
|
||||
memberName: 'bunny-fact',
|
||||
description: 'Responds with a random bunny fact.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say(facts[Math.floor(Math.random() * facts.length)]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user