This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+5 -5
View File
@@ -7,11 +7,11 @@ module.exports = class RoastCommand extends Command {
name: 'roast',
group: 'response',
memberName: 'roast',
description: 'Roasts something/someone.',
description: 'Roasts a user.',
args: [
{
key: 'thing',
prompt: 'What do you want to roast?',
key: 'user',
prompt: 'What user do you want to roast?',
type: 'string'
}
]
@@ -19,8 +19,8 @@ module.exports = class RoastCommand extends Command {
}
run(msg, args) {
const { thing } = args;
const user = args.user || msg.author;
const roast = roasts[Math.floor(Math.random() * roasts.length)];
return msg.say(`${thing}, ${roast}`);
return msg.say(`${user}, ${roast}`);
}
};