mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Fix
This commit is contained in:
@@ -35,9 +35,9 @@ module.exports = class GoogleCommand extends Command {
|
|||||||
const data = body.items[0];
|
const data = body.items[0];
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
**${data.title}**
|
**${data.title}**
|
||||||
${data.snippet}
|
${data.snippet.replace(/\n/g, '')}
|
||||||
|
|
||||||
<${data.formattedUrl}>
|
${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