Bug Fixes and Minor Modifications

This commit is contained in:
Daniel Odendahl Jr
2017-04-01 23:54:28 +00:00
parent 8ed6e15aff
commit ae3d5745b6
8 changed files with 12 additions and 22 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ module.exports = class YodaCommand extends commando.Command {
'Accept': 'text/plain'
})
.query({
sentence: turnToYoda
sentence: encodeURI(turnToYoda)
});
if (!response.text) return message.say(':x: Error! Something went wrong! Keep it simple to avoid this error.');
return message.say(response.text);