From f200ce7be2ed63ae2a8ba19e3ee8a5c90fdad30c Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 21 Mar 2017 19:33:08 +0000 Subject: [PATCH] Fix for Yoda --- commands/textedit/yoda.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/textedit/yoda.js b/commands/textedit/yoda.js index c6904ade..856cd6b0 100644 --- a/commands/textedit/yoda.js +++ b/commands/textedit/yoda.js @@ -29,10 +29,8 @@ module.exports = class YodaCommand extends commando.Command { .then(function (response) { if(response === undefined) { message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.'); - console.log(response.body); } else { - console.log(response); - message.channel.send(response).catch(error => message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.')); + message.channel.send(response.text).catch(error => message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.')); } }).catch(function (err) { message.channel.send(":x: Error! Unknown Error. Try again later!");