Files
xiao/commands/random-res/pun.js
T
2020-03-23 11:42:43 -04:00

18 lines
395 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-res',
memberName: 'pun',
description: 'Responds with a random pun.'
});
}
run(msg) {
return msg.say(puns[Math.floor(Math.random() * puns.length)]);
}
};