mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 15:57:47 +02:00
Pun Command
This commit is contained in:
@@ -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)]);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user