From 9a017fa20995ef388b90b08f7e0f638c926eb04a Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 2 Apr 2017 03:09:32 +0000 Subject: [PATCH] Remove some encodeURI's --- commands/search/imdb.js | 2 +- commands/textedit/yoda.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/search/imdb.js b/commands/search/imdb.js index 84aefab1..4e77ac38 100644 --- a/commands/search/imdb.js +++ b/commands/search/imdb.js @@ -28,7 +28,7 @@ module.exports = class IMDBCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return; } console.log(`[Command] ${message.content}`); - let queryMovie = encodeURI(args.movie); + let queryMovie = args.movie; try { let response = await request .get(`http://www.omdbapi.com/`) diff --git a/commands/textedit/yoda.js b/commands/textedit/yoda.js index 47794b9a..511c246e 100644 --- a/commands/textedit/yoda.js +++ b/commands/textedit/yoda.js @@ -23,7 +23,7 @@ module.exports = class YodaCommand extends commando.Command { if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return; } console.log(`[Command] ${message.content}`); - let turnToYoda = encodeURI(args.text); + let turnToYoda = args.text; try { let response = await request .get('https://yoda.p.mashape.com/yoda')