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