Skip to content

Commit

Permalink
Google URL generator
Browse files Browse the repository at this point in the history
Super-simple URL generator, but needs to be its own module in order to
register the command 'google'. Same goes for any additional URL
generators, like lmgtfy.
  • Loading branch information
subpop committed Sep 23, 2011
1 parent 5ca9113 commit 0c1656c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/google.js
@@ -0,0 +1,7 @@
var misaoUtil = require('../util.js');

module.id = 'google';

exports.execute = function(msg, callback) {
callback("http://google.com/search?q=" + misaoUtil.stripText(msg));
};

0 comments on commit 0c1656c

Please sign in to comment.