const querystring = require('querystring');

module.exports = {
  name: 'google',
  pattern: '(please )?google (.+)',
  reply: function(message, match, reply) {
    const params = {
      q: match[2],
    };
    const site = match[1] ? 'http://lmgtfy.com/' : 'https://www.google.com/';
    const uri = `${site}?${querystring.stringify(params)}`;
    reply(`See [Google results for "${match[4]}"](${uri})`);
  }
};

@@ -387,9 +387,9 @@
 tch%5B
-4
+2
 %5D%7D%22%5D

Fix Google command response #5