Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.47 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. "My God just came in..."
  14. "Hello my OWNER"
  15. "I greet you my owner"
  16. "Welcome my owner"
  17. "Fuck me my owner!"
  18. "Most Great"
  19. }
  20. set info_localowner {
  21. "Lol...my local owner just joined the channel"
  22. "Welcome localowner of mine.."
  23. "Hi sweety {}"
  24. }
  25. set info_master {
  26. "Oh...My MASTER"
  27. "I'm gonna be quiet my master"
  28. "Don't hit me my master"
  29. "Master detected"
  30. }
  31. set info_friend {
  32. "Ou, my friend :)"
  33. ":)"
  34. "Sweety"
  35. "You're SUCKER"
  36. "My friendship with you is over!"
  37. "SUCK me Baby {}"
  38. }
  39. set info_oper {
  40. "You simple oper, watch out !"
  41. "Operator detected!"
  42. "You gonna lose your flags if you do something bad!"
  43. "I'm watching you..."
  44. }
  45. set info_loser {
  46. "What are you doing here loser"
  47. "You're just a loser"
  48. }
  49.  
  50. # main()
  51.  
  52. proc sayinfo { nick host handle chan } {
  53. global botnick
  54. if { $nick != $botnick } {
  55. if {[matchattr $handle n]} {
  56. putserv "PRIVMSG $chan :[rand_owner $nick] $nick \[+n\]"
  57. } elseif {[matchattr $handle |n $chan]} {
  58. putserv "PRIVMSG $chan :[rand_localowner $nick] $nick \[|+n\]"
  59. } elseif {[matchattr $handle m]} {
  60. putserv "PRIVMSG $chan :[rand_master $nick] $nick \[+m\]"
  61. } elseif {[matchattr $handle |m $chan]} {
  62. putserv "PRIVMSG $chan :[rand_master $nick] $nick \[+m\]"
  63. } elseif {[matchattr $handle f]} {
  64. putserv "PRIVMSG $chan :[rand_friend $nick] $nick \[+f\]"
  65. } elseif {[matchattr $handle |f $chan]} {
  66. putserv "PRIVMSG $chan :[rand_friend $nick] $nick \[+f\]"
  67. } elseif {[matchattr $handle o]} {
  68. putserv "PRIVMSG $chan :[rand_oper $nick] $nick \[+o\]"
  69. } elseif {[matchattr $handle |o $chan]} {
  70. putserv "PRIVMSG $chan :[rand_oper $nick] $nick \[+o\]"
  71. } elseif {[matchattr $handle d]} {
  72. putserv "PRIVMSG $chan :[rand_loser $nick] $nick \[+d or +k\]"
  73. } elseif {[matchattr $handle |d $chan]} {
  74. putserv "PRIVMSG $chan :[rand_loser $nick] $nick \[+d or +k\]"
  75. }
  76. }
  77. }
  78.  
  79. # random(s)
  80.  
  81. proc rand_owner {nick} {
  82. global info_owner
  83. set result [lindex $info_owner [rand [llength $info_owner]]]
  84. return "$result"
  85. }
  86. proc rand_localowner {nick} {
  87. global info_localowner
  88. set result [lindex $info_localowner [rand [llength $info_localowner]]]
  89. return "$result"
  90. }
  91. proc rand_master {nick} {
  92. global info_master
  93. set result [lindex $info_master [rand [llength $info_master]]]
  94. return "$result"
  95. }
  96. proc rand_friend {nick} {
  97. global info_friend
  98. set result [lindex $info_friend [rand [llength $info_friend]]]
  99. return "$result"
  100. }
  101. proc rand_oper {nick} {
  102. global info_oper
  103. set result [lindex $info_oper [rand [llength $info_oper]]]
  104. return "$result"
  105. }
  106. proc rand_loser {nick} {
  107. global info_loser
  108. set result [lindex $info_loser [rand [llength $info_loser]]]
  109. return "$result"
  110. }
  111.  
  112. # putlog
  113. putlog "Tcl for greetings v2.0 by <\002max4o\002> (last update: $update)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement