Guest User

Untitled

a guest
Sep 15th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.38 KB | None | 0 0
  1. bind pubm - "*" pub_word
  2.  
  3. set search "hi|hello|wazz up"
  4.  
  5. set reply {
  6.     "Whats up"
  7.     "Sup"
  8.     "Howdy"
  9. }
  10.  
  11. proc pub_word {nick host hand chan arg} {
  12.     global search reply
  13.     if {[regexp -line $search $arg]} {utimer [random 5 10] [ putserv "PRIVMSG $chan :[lindex $reply [random 0 [expr { [llength $reply] -1}]]] $nick" ]}
  14. }
  15. proc random {min max} { expr {int(rand()*($max-$min+1))+$min} }
Add Comment
Please, Sign In to add comment