mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
18 lines
395 B
JavaScript
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)]);
|
|
}
|
|
};
|