mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-15 08:22:37 +02:00
Google Fixed?
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = class DefineCommand extends commando.Command {
|
|||||||
console.log("[Command] " + message.content);
|
console.log("[Command] " + message.content);
|
||||||
let thingToSearch = encodeURI(message.content.split(" ").slice(1).join(" "));
|
let thingToSearch = encodeURI(message.content.split(" ").slice(1).join(" "));
|
||||||
message.channel.send('Searching...');
|
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
|
request
|
||||||
.get(SEARCH_URL)
|
.get(SEARCH_URL)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user