Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. ##############################################################
  2. ### Info Tcl by max4o ###
  3. ## mail:<max4o@g00net.org> ##
  4. # version 2.0 #
  5. ##############################################################
  6.  
  7. # main strings
  8. set update "18.11.2002"
  9. bind join - * sayinfo
  10.  
  11. # Strings
  12. set info_owner {
  13. "6"
  14. }
  15. set info_localowner {
  16. "Ou, my friend :)"
  17. }
  18. set info_master {
  19. "6"
  20. }
  21. set info_friend {
  22. "Ou, my friend :)"
  23. }
  24. set info_oper {
  25. "Ou, my friend :)"
  26. }
  27. set info_loser {
  28. "Ou, my friend :)"
  29. }
  30.  
  31. # main()
  32.  
  33. proc sayinfo { nick host handle chan } {
  34. global botnick
  35. if { $nick != $botnick } {
  36. if {[matchattr $handle n]} {
  37. putserv "PRIVMSG $chan :[rand_owner $nick] $nick 6 Es parte del Staff del ChatAdventista"
  38. } elseif {[matchattr $handle |n $chan]} {
  39. putserv "PRIVMSG $chan :[rand_localowner $nick] $nick $nick 6 Es parte del Staff del ChatAdventista"
  40. } elseif {[matchattr $handle m]} {
  41. putserv "PRIVMSG $chan :[rand_master $nick] $nick 6 Es parte del Staff del ChatAdventista"
  42. } elseif {[matchattr $handle |m $chan]} {
  43. putserv "PRIVMSG $chan :[rand_master $nick] $nick 6 Es parte del Staff del ChatAdventista"
  44. } elseif {[matchattr $handle f]} {
  45. putserv "PRIVMSG $chan :[rand_friend $nick] $nick "
  46. } elseif {[matchattr $handle |f $chan]} {
  47. putserv "PRIVMSG $chan :[rand_friend $nick] $nick "
  48. } elseif {[matchattr $handle o]} {
  49. putserv "PRIVMSG $chan :[rand_oper $nick] $nick "
  50. } elseif {[matchattr $handle |o $chan]} {
  51. putserv "PRIVMSG $chan :[rand_oper $nick] $nick "
  52. } elseif {[matchattr $handle d]} {
  53. putserv "PRIVMSG $chan :[rand_loser $nick] $nick "
  54. } elseif {[matchattr $handle |d $chan]} {
  55. putserv "PRIVMSG $chan :[rand_loser $nick] $nick "
  56. }
  57. }
  58. }
  59.  
  60. # random(s)
  61.  
  62. proc rand_owner {nick} {
  63. global info_owner
  64. set result [lindex $info_owner [rand [llength $info_owner]]]
  65. return "$result"
  66. }
  67. proc rand_localowner {nick} {
  68. global info_localowner
  69. set result [lindex $info_localowner [rand [llength $info_localowner]]]
  70. return "$result"
  71. }
  72. proc rand_master {nick} {
  73. global info_master
  74. set result [lindex $info_master [rand [llength $info_master]]]
  75. return "$result"
  76. }
  77. proc rand_friend {nick} {
  78. global info_friend
  79. set result [lindex $info_friend [rand [llength $info_friend]]]
  80. return "$result"
  81. }
  82. proc rand_oper {nick} {
  83. global info_oper
  84. set result [lindex $info_oper [rand [llength $info_oper]]]
  85. return "$result"
  86. }
  87. proc rand_loser {nick} {
  88. global info_loser
  89. set result [lindex $info_loser [rand [llength $info_loser]]]
  90. return "$result"
  91. }
  92.  
  93. # putlog
  94. putlog "Tcl for greetings v2.0 by <\002max4o\002> (last update: $update)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement