Files
xiao/commands/random/pun.js
T
Daniel Odendahl Jr e6a9a8309e Pun Command
2018-08-30 23:49:21 +00:00

18 lines
391 B
JavaScript

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)]);
}
};