Google Fixed?

This commit is contained in:
Daniel Odendahl Jr
2017-03-23 01:10:08 +00:00
parent 6ee66c383a
commit a1b9e77fcc
+1 -1
View File
@@ -24,7 +24,7 @@ module.exports = class DefineCommand extends commando.Command {
console.log("[Command] " + message.content);
let thingToSearch = encodeURI(message.content.split(" ").slice(1).join(" "));
message.channel.send('Searching...');
const SEARCH_URL = `https://www.google.com/search?q=${encodeURI(thingToSearch)}`;
const SEARCH_URL = `https://www.google.com/search?q=${thingToSearch}`;
request
.get(SEARCH_URL)
.then(function (response) {