mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 07:46:43 +02:00
27 lines
750 B
JavaScript
27 lines
750 B
JavaScript
const { Command } = require('discord.js-commando');
|
|
const roasts = require('../../assets/json/roast');
|
|
|
|
module.exports = class RoastCommand extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: 'roast',
|
|
group: 'response',
|
|
memberName: 'roast',
|
|
description: 'Roasts something/someone.',
|
|
args: [
|
|
{
|
|
key: 'thing',
|
|
prompt: 'What do you want to roast?',
|
|
type: 'string'
|
|
}
|
|
]
|
|
});
|
|
}
|
|
|
|
run(msg, args) {
|
|
const { thing } = args;
|
|
const roast = roasts[Math.floor(Math.random() * roasts.length)];
|
|
return msg.say(`${thing}, ${roast}`);
|
|
}
|
|
};
|