Fidget Command

This commit is contained in:
Daniel Odendahl Jr
2017-09-16 17:29:08 +00:00
parent 0a48a444c3
commit 52a9ed80c2
3 changed files with 36 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
const Command = require('../../structures/Command');
const nimbats = require('../../assets/json/fidget');
module.exports = class FidgetCommand extends Command {
constructor(client) {
super(client, {
name: 'fidget',
aliases: ['nimbat'],
group: 'random-img',
memberName: 'fidget',
description: 'Responds with a random image of Fidget.',
clientPermissions: ['ATTACH_FILES']
});
}
run(msg) {
return msg.say({ files: [nimbats[Math.floor(Math.random() * nimbats.length)]] });
}
};