mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Bug Fixes and Minor Modifications
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user