This commit is contained in:
Daniel Odendahl Jr
2018-02-21 22:25:59 +00:00
parent c8f0c5b70e
commit aa9612bd89
+2 -2
View File
@@ -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)}`);