Created
May 24, 2011 21:01
-
-
Save hoelzro/989678 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module('mybot.wikipedia') | |
command = 'wiki' | |
local function get_mw_results(url, query) | |
-- do something | |
end | |
function handlemessage(msg) | |
local body = msg.body | |
local results = get_mw_results('http://en.wikipedia.org', body) | |
return table.concat(results, '\n') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment