Files
xiao/commands/response/roast.js
T
Daniel Odendahl Jr 3bb21c2df0 Cleaner Looking args
2017-05-02 17:54:07 +00:00

27 lines
735 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(msg, args) {
const { thing } = args;
const roast = roasts[Math.floor(Math.random() * roasts.length)];
return msg.say(`${thing}, ${roast}`);
}
};