From d26efaac812fad3800f7f4af268822f9e8b324aa Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 30 May 2019 22:00:03 -0400 Subject: [PATCH] Custom search before scrape search --- commands/search/google.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/search/google.js b/commands/search/google.js index 71226c27..46dbbe56 100644 --- a/commands/search/google.js +++ b/commands/search/google.js @@ -44,10 +44,10 @@ module.exports = class GoogleCommand extends Command { let href; const nsfw = msg.channel.nsfw || false; try { - href = await this.searchGoogle(query, nsfw); + href = await this.customSearch(query, nsfw); } catch (err) { try { - href = await this.customSearch(query, nsfw); + href = await this.searchGoogle(query, nsfw); } catch (err2) { href = `http://lmgtfy.com/?iie=1&q=${encodeURIComponent(query)}`; } diff --git a/package.json b/package.json index cc8541f9..bc3010ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xiao", - "version": "105.2.2", + "version": "105.2.3", "description": "Your personal server companion.", "main": "Xiao.js", "scripts": {