From 850ba62e5abf0a83bdd62e7062184e334b9de5a8 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 6 Jun 2017 21:16:23 +0000 Subject: [PATCH] Bug Fixes --- commands/response/compliment.js | 2 +- commands/response/roast.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/response/compliment.js b/commands/response/compliment.js index af3ae9c8..c1a898b0 100644 --- a/commands/response/compliment.js +++ b/commands/response/compliment.js @@ -22,6 +22,6 @@ module.exports = class ComplimentCommand extends Command { run(msg, args) { const user = args.user || msg.author; const compliment = compliments[Math.floor(Math.random() * compliments.length)]; - return msg.say(`${user}, ${compliment}`); + return msg.say(`${user.username}, ${compliment}`); } }; diff --git a/commands/response/roast.js b/commands/response/roast.js index dda77fbf..45ed3db6 100644 --- a/commands/response/roast.js +++ b/commands/response/roast.js @@ -12,7 +12,7 @@ module.exports = class RoastCommand extends Command { { key: 'user', prompt: 'What user do you want to roast?', - type: 'string', + type: 'user', default: '' } ] @@ -22,6 +22,6 @@ module.exports = class RoastCommand extends Command { run(msg, args) { const user = args.user || msg.author; const roast = roasts[Math.floor(Math.random() * roasts.length)]; - return msg.say(`${user}, ${roast}`); + return msg.say(`${user.username}, ${roast}`); } };