Custom search before scrape search

This commit is contained in:
Dragon Fire
2019-05-30 22:00:03 -04:00
parent 295c5e495e
commit d26efaac81
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)}`;
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "105.2.2",
"version": "105.2.3",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {