mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Bye to some useless stuff
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
const { Command } = require('discord.js-commando');
|
||||
const fruits = require('../../assets/json/fruit');
|
||||
|
||||
module.exports = class FruitCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'fruit',
|
||||
group: 'random',
|
||||
memberName: 'fruit',
|
||||
description: 'Responds with a random fruit.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
return msg.say(fruits[Math.floor(Math.random() * fruits.length)]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user