Created
February 11, 2011 06:42
-
-
Save JakobOvrum/822019 to your computer and use it in GitHub Desktop.
put in on_connect to wait for gamesurge auth
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
--do not put entries into the channels table! | |
--replace with your account password | |
local authpass = "YOURPASSWORD" | |
--gamesurge auth | |
function on_connect(bot) | |
bot:sendChat("[email protected]", "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