Files
xiao/commands/response/roast.js
T
2017-04-25 02:37:14 +00:00

25 lines
697 B
JavaScript

const { Command } = require('discord.js-commando');
const roasts = require('./roasts');
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(message, args) {
const { thing } = args;
const roast = roasts[Math.floor(Math.random() * roasts.length)];
return message.say(`${thing}, ${roast}`);
}
};