From a4e9859f2c637c332be978fdd6feeb774a74504e Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Thu, 23 Mar 2017 04:03:16 +0000 Subject: [PATCH] Wikipedia Work Again --- commands/search/wikipedia.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/search/wikipedia.js b/commands/search/wikipedia.js index b33ab818..73d9996b 100644 --- a/commands/search/wikipedia.js +++ b/commands/search/wikipedia.js @@ -19,6 +19,7 @@ module.exports = class WikipediaCommand extends commando.Command { } console.log(`[Command] ${message.content}`); let thingToSearch = encodeURI(message.content.split(" ").slice(1).join(" ")); + thingToSearch = thingToSearch.split(")").join("%29"); request .get(`https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&titles=${thingToSearch}&exintro=&explaintext=&redirects=&formatversion=2`) .then(function(response) {