Skip to content

Instantly share code, notes, and snippets.

@andsve
Created August 23, 2010 00:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andsve/544527 to your computer and use it in GitHub Desktop.
Save andsve/544527 to your computer and use it in GitHub Desktop.
module("modules/testmod/testmod")
function parse_message(bot, msg)
local i,j,s,c = string.find(msg, ":(.-)!.- PRIVMSG (.-) :poopshoot")
if not (i == nil) then
bot:say(c, "Hey, " .. tostring(s) .. ", watch your language!!")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment