Skip to content

Instantly share code, notes, and snippets.

@JakobOvrum
Created February 11, 2011 06:42
Show Gist options
  • Save JakobOvrum/822019 to your computer and use it in GitHub Desktop.
Save JakobOvrum/822019 to your computer and use it in GitHub Desktop.
put in on_connect to wait for gamesurge auth
--do not put entries into the channels table!
--replace with your account password
local authpass = "YOURPASSWORD"
--gamesurge auth
function on_connect(bot)
bot:sendChat("AuthServ@Services.GameSurge.net", "IDENTIFY " .. authpass)
bot:setMode{add = "x"} -- for mask
bot:hook("OnNotice", "auth", function(user, channel, message)
bot:log(message)
if user.nick == "AuthServ" then
if message == "I recognize you." then
bot:log("joining channels")
--join channels here
bot:join("#hellothere")
bot:unhook("OnNotice", "auth")
else
error(message)
end
end
end)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment