Guest User

Untitled

a guest
Jun 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. set listenport "9090
  2.  
  3. # port for your script you want to listen on (you need to set same port in php script)
  4.  
  5. set password "YOURPASSWORD"
  6.  
  7. # password (you need to set same password in php script)
  8.  
  9. set chan "#Announce"
  10.  
  11. # channel you want to send output to
  12.  
  13. listen $listenport script botlisten
  14.  
  15. proc botlisten {idx} {
  16. control $idx botlisten2
  17. }
  18.  
  19. proc botlisten2 {idx args} {
  20.  
  21. set args [join $args]
  22. set password1 [lindex [split $args] 0]
  23. set message [join [lrange [split $args] 1 end]]
  24.  
  25. if {[string match $::password $password1]} {
  26. putquick "PRIVMSG $::chan :$message"
  27. } else {
  28. putlog "Unauthorized person tried to connect to the bot"
  29. }
  30. }
  31.  
  32. putlog "Tracker announce script by loaded"
Add Comment
Please, Sign In to add comment