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