Advertisement
Iire

Here

Aug 18th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. alias bot {
  2. if ($sock(bot)) {
  3. sockclose bot
  4. window -c @mbot
  5. }
  6. else {
  7. sockopen bot $server 6667
  8. window -ek0 @mbot
  9. }
  10. }
  11.  
  12. alias bjp {
  13. tokenize 32 #$1 #
  14. sockwrite -nt bot $iif(mbot ison $1,part,join) $1
  15. }
  16. alias bsay if (mbot ison #) sockwrite -nt bot PRIVMSG # $1-
  17.  
  18. on *:SOCKOPEN:bot: {
  19. sockwrite -nt bot USER mbot 8 * Socketbot
  20. sockwrite -nt bot NICK mbot
  21. }
  22.  
  23. on *:SOCKREAD:bot: {
  24. var %bsock
  25. sockread %bsock
  26. tokenize 32 %bsock
  27. if (*PING* iswm $1) sockwrite -nt bot PONG $server
  28. aline @mbot $1-
  29. elseif ($2 == PRIVMSG) && ($regex($4,/^:(([^ ]+))/)) && ($regml(2) != ACTION) {
  30. sockwrite -nt bot NOTICE $right($gettok($1,1,33),-1) $regml(1) $replacex($regml(2),PING,$ctime,TIME,$fulldate,VERSION,mIRC v7.19 socket bot)
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement