Cacao7w7

bienvenida.tcl

Jul 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. # ************************************************************
  2. # esta tcl dara la bienvenida a los usuarios que entren a tus canales
  3. # pero con un solo mensaje fijo para todos tus canales
  4. # ************************************************************
  5.  
  6. ## aqui pon tu mensaje editalo
  7. set onjoin_msg {
  8. {
  9. "��� Bienvenido �\2$nick\2� Una Radio Llena De Onda �. �� Ven Diviértete con nuestros Dj's �� Somos una Radio que No Compite �� y Somos Originales �� Radio-OndaMix �� Llena de Sorpresas �� Para ver comandos Radio ��� !axe ��� Radio OndaMix ���"
  10. }
  11. }
  12.  
  13. ## aqui los canales donde estara activa la tcl
  14. set onjoin_chans "#Xpresion-Latina"
  15.  
  16. # ************************************************************
  17. # no edite nada si no sabe de tcl
  18. # caso contrario la tcl no funcionara correctamente
  19. # ************************************************************
  20.  
  21. bind join - * join_onjoin
  22.  
  23. proc join_onjoin {nick uhost hand chan} {
  24. global onjoin_msg onjoin_chans botnick
  25. if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == "*")) && (![matchattr $hand b]) && ($nick != $botnick)} {
  26. set onjoin_temp [lindex $onjoin_msg [rand [llength $onjoin_msg]]]
  27. foreach msgline $onjoin_temp {
  28. puthelp "NOTICE $nick :[subst $msgline]"
  29. }
  30. }
  31. }
  32. putlog "TCL de Bienvenida Oficial Radio-OndaMix"
Add Comment
Please, Sign In to add comment