Pun Command

This commit is contained in:
Daniel Odendahl Jr
2018-08-30 23:49:21 +00:00
parent 282fbd3200
commit e6a9a8309e
4 changed files with 257 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
const Command = require('../../structures/Command');
const puns = require('../../assets/json/pun');
module.exports = class PunCommand extends Command {
constructor(client) {
super(client, {
name: 'pun',
group: 'random',
memberName: 'pun',
description: 'Responds with a random pun.'
});
}
run(msg) {
return msg.say(puns[Math.floor(Math.random() * puns.length)]);
}
};