mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Custom search before scrape search
This commit is contained in:
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "105.2.2",
|
||||
"version": "105.2.3",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user