diff --git a/google.js b/google.js new file mode 100644 index 0000000..ad42bac --- /dev/null +++ b/google.js @@ -0,0 +1,10 @@ +var action = function(client, from, to, text, message) { + var q = text.split(/ (.+)/)[1]; + if (!q || q.length == 0) { + return 'no keyword given, Silly ass'; + } + + return 'http://google.com/search?q=' + escape(q); +}; + +module.exports = action;