Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ini=%A_ScriptDir%\cfxbot.ini
- Auth1=AuthServ@Services.GameSurge.net
- IniRead pass, %ini%, Auth, pass
- IniRead nick, %ini%, Auth, nick
- IniRead channel, %ini%, Auth, channel
- IniRead server, %ini%, Auth, server
- IniRead port, %ini%, Auth, port
- IniRead RealName, %ini%, Auth, RealName
- IniRead Name, %ini%, Auth, Name
- OnExit, CleanUp
- OnMessage(0x4a, "GetMessage")
- socket := WS2_Connect(server ":" port)
- sleep 50
- WS2_AsyncSelect(socket, "ReadIRC")
- if socket = -1
- reload
- SendIRC("NICK " nick "`r`n")
- ;SendIRC("PASS " Pass "`r`n")
- SendIRC("AUTH " nick . Pass "`r`n")
- SendIRC("USER " name " 0 * :" Realname "`r`n")
- SendIRC("JOIN " channel "`r`n")
- #########################
- ### INI
- #########################
- [Auth]
- Server=irc.GameSurge.net
- Port=6667
- Channel=#jumpit
- Nick=JimBo_Bot
- Pass=SomePass
- Name=Jake
- RealName=nimdAHK's bot - hosted by Jake``
Add Comment
Please, Sign In to add comment