mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -35,9 +35,9 @@ module.exports = class GoogleCommand extends Command {
|
||||
const data = body.items[0];
|
||||
return msg.say(stripIndents`
|
||||
**${data.title}**
|
||||
${data.snippet}
|
||||
${data.snippet.replace(/\n/g, '')}
|
||||
|
||||
<${data.formattedUrl}>
|
||||
${data.formattedUrl}
|
||||
`);
|
||||
} catch (err) {
|
||||
return msg.say(`http://lmgtfy.com/?iie=1&q=${encodeURIComponent(query)}`);
|
||||
|
||||
Reference in New Issue
Block a user