Cacao7w7

count.tcl

Jul 14th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. # count.tcl
  2. # version 0.1
  3. # caesar <cezarica@prietenii.com>
  4. # #eggdrop @ Undernet.org
  5. # www.geocities.com/caesartcl/
  6.  
  7. # En que archivo hacen usted quiere que las junturas sean almacenadas?
  8. set joins "joins.dat"
  9.  
  10. # Pon aqui la fecha donde usted quiere comenzar contar?
  11. set date "14 de Julio del año 2018"
  12.  
  13. # canal donde estara activa la tcl
  14. # recuerde que la tcl es sencible y reconoce mayusculas y minusculas eg: #cHaNnEl y #channel.
  15. set counting "#Radio-OndaMix"
  16.  
  17. ### ANY EDITING AND/OR MODIFICATIONS MADE BEYOND THIS IS YOUR OWN RISK! ###
  18.  
  19. bind join - "*" the:counting
  20.  
  21. proc the:counting {nick uhost handle chan} {
  22. if {[string tolower $nick] == [string tolower $::botnick] || [string tolower $chan] != [string tolower $::counting] } { return }
  23.  
  24. if {![file exists $::joins]} {
  25. putlog "$::joins el archivo no existe, creando nuevo archivo..."
  26. set file [open $::joins w]
  27. puts $file "0"
  28. catch {close $file}
  29. }
  30.  
  31. set file [open $::joins r]
  32. set tilnow "[gets $file]"
  33. catch {close $file}
  34.  
  35. set file [open $::joins w]
  36. puts $file "[expr $tilnow + 1]"
  37. set tilnow [expr $tilnow + 1]
  38. catch {close $file}
  39.  
  40. putserv "NOTICE $nick :Bienvenido Bounjour Alo Welcome Eres El Oyente N° \002$tilnow\002 Que Visita Radio-OndaMix en Nuestra Sala Oficial $chan Desde el dia $::date."
  41. }
  42.  
  43. putlog "counter.tcl is loaded.. tcl Subida por el staff de #tcls en DALnet"
Add Comment
Please, Sign In to add comment