Guest User

Untitled

a guest
Jan 23rd, 2018
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. ini=%A_ScriptDir%\cfxbot.ini
  2. Auth1=AuthServ@Services.GameSurge.net
  3. IniRead pass, %ini%, Auth, pass
  4. IniRead nick, %ini%, Auth, nick
  5. IniRead channel, %ini%, Auth, channel
  6. IniRead server, %ini%, Auth, server
  7. IniRead port, %ini%, Auth, port
  8. IniRead RealName, %ini%, Auth, RealName
  9. IniRead Name, %ini%, Auth, Name
  10.  
  11. OnExit, CleanUp
  12. OnMessage(0x4a, "GetMessage")
  13. socket := WS2_Connect(server ":" port)
  14. sleep 50
  15. WS2_AsyncSelect(socket, "ReadIRC")
  16. if socket = -1
  17. reload
  18.  
  19. SendIRC("NICK " nick "`r`n")
  20. ;SendIRC("PASS " Pass "`r`n")
  21. SendIRC("AUTH " nick . Pass "`r`n")
  22. SendIRC("USER " name " 0 * :" Realname "`r`n")
  23. SendIRC("JOIN " channel "`r`n")
  24.  
  25.  
  26.  
  27.  
  28.  
  29. #########################
  30. ### INI
  31. #########################
  32. [Auth]
  33. Server=irc.GameSurge.net
  34. Port=6667
  35. Channel=#jumpit
  36. Nick=JimBo_Bot
  37. Pass=SomePass
  38. Name=Jake
  39. RealName=nimdAHK's bot - hosted by Jake``
Add Comment
Please, Sign In to add comment