mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Shakespeare Insult
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
const Command = require('../../framework/Command');
|
||||
const insults = require('../../assets/json/shakespeare-insult');
|
||||
|
||||
module.exports = class ShakespeareInsultCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'shakespeare-insult',
|
||||
aliases: ['shakespeare', 'shakespeare-insulter'],
|
||||
group: 'random-res',
|
||||
description: 'Lets Shakespeare insult you.'
|
||||
});
|
||||
}
|
||||
|
||||
run(msg) {
|
||||
const first = insults[0][Math.floor(Math.random() * insults[0].length)];
|
||||
const second = insults[1][Math.floor(Math.random() * insults[1].length)];
|
||||
const third = insults[2][Math.floor(Math.random() * insults[2].length)];
|
||||
return msg.reply(`Thou ${first} ${second} ${third}.`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user