diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index 0d4c9809..120824ab 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -35,7 +35,7 @@ module.exports = class WikipediaCommand extends commando.Command { .setTitle(name) .setURL("https://en.wikipedia.org/wiki/" + thingToSearch) .setAuthor("Wikipedia", "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/1122px-Wikipedia-logo-v2.svg.png") - .setDescription(description + "[Read the Rest Here](https://en.wikipedia.org/wiki/" + thingToSearch + ")"); + .setDescription(description + " [Read the Rest Here](https://en.wikipedia.org/wiki/" + thingToSearch + ")"); message.channel.sendEmbed(embed).catch(console.error); } }).catch(function (err) { diff --git a/commands/textedit/yoda.js b/commands/textedit/yoda.js index 638eedee..7d5438a6 100644 --- a/commands/textedit/yoda.js +++ b/commands/textedit/yoda.js @@ -27,8 +27,9 @@ module.exports = class YodaCommand extends commando.Command { .set({ 'X-Mashape-Key': config.mashapekey, 'Accept': 'text/plain' }) .query({ sentence: turnToYoda }) .then(function (response) { - if(response === undefined) { + if(response.body === undefined) { message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.'); + console.log(response.body); } else { message.channel.send(response.body).catch(error => message.channel.send(':x: Error! Something went wrong! Keep it simple to avoid this error.')); }