mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +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)}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user