mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 14:00:22 +02:00
This is only used once
This commit is contained in:
@@ -31,8 +31,7 @@ module.exports = class GoogleCommand extends Command {
|
|||||||
q: query
|
q: query
|
||||||
});
|
});
|
||||||
if (!body.items) return msg.say('Could not find any results.');
|
if (!body.items) return msg.say('Could not find any results.');
|
||||||
const data = body.items[0];
|
return msg.say(body.items[0].formattedUrl);
|
||||||
return msg.say(data.formattedUrl);
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return msg.say(`http://lmgtfy.com/?iie=1&q=${encodeURIComponent(query)}`);
|
return msg.say(`http://lmgtfy.com/?iie=1&q=${encodeURIComponent(query)}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user