Advertisement
Guest User

sss

a guest
Feb 19th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.25 KB | None | 0 0
  1. ########################################################################################
  2. #- Enter the Bad nicks Below on which you want your bot to BAN (Wild Cards Supported)-#
  3. ########################################################################################
  4. ## recuerda que al usar "*pene*" con eso lo vuelves general o global
  5. ## al estar seguro que el nick malo que agregues no tenga derivantes como gay usa asi "*gay*"
  6. ## y cuando son nick concretos pero que derivan a otros ejemplo puto y que no deribe a computo usa asi "puto"
  7.  
  8. ## en esta seccion agregas los nicks ofensivos
  9. set bnick {
  10. "*10*"
  11. "*11*"
  12. "*12*"
  13. "*13*"
  14. "*14*"
  15. "*15*"
  16. "*16*"
  17. "*17*"
  18. }
  19.  
  20. ## aqui coloca los nicks que veas como ignorados o esten excluidos, y no se patearan
  21. ##puedes usar -nick o _nick ejemplo "*-penelope*" que deriva al nick juan-penelope
  22. set nicksnokick {
  23. "chat*"
  24. "hispa*"
  25. "*010*"
  26. "*011*"
  27. "*012*"
  28. "*013*"
  29. "*014*"
  30. "*015*"
  31. "*016*"
  32. "*017*"
  33. "*018*"
  34. "*019*"
  35. "*110*"
  36. "*111*"
  37. "*112*"
  38. "*113*"
  39. "*114*"
  40. "*115*"
  41. "*116*"
  42. "*117*"
  43. "*118*"
  44. "*119*"
  45. "*210*"
  46. "*211*"
  47. "*212*"
  48. "*213*"
  49. "*214*"
  50. "*215*"
  51. "*216*"
  52. "*217*"
  53. "*310*"
  54. "*311*"
  55. "*312*"
  56. "*313*"
  57. "*314*"
  58. "*315*"
  59. "*316*"
  60. "*317*"
  61. "*410*"
  62. "*411*"
  63. "*412*"
  64. "*413*"
  65. "*414*"
  66. "*415*"
  67. "*416*"
  68. "*417*"
  69. "*510*"
  70. "*511*"
  71. "*512*"
  72. "*513*"
  73. "*514*"
  74. "*515*"
  75. "*516*"
  76. "*517*"
  77. "*610*"
  78. "*611*"
  79. "*612*"
  80. "*613*"
  81. "*614*"
  82. "*615*"
  83. "*616*"
  84. "*617*"
  85. "*710*"
  86. "*711*"
  87. "*712*"
  88. "*713*"
  89. "*714*"
  90. "*715*"
  91. "*716*"
  92. "*717*"
  93. "*810*"
  94. "*811*"
  95. "*812*"
  96. "*813*"
  97. "*814*"
  98. "*815*"
  99. "*816*"
  100. "*817*"
  101. "*910*"
  102. "*911*"
  103. "*912*"
  104. "*913*"
  105. "*914*"
  106. "*915*"
  107. "*916*"
  108. "*917*"
  109. "*110*"
  110. "*111*"
  111. "*112*"
  112. "*113*"
  113. "*114*"
  114. "*115*"
  115. "*116*"
  116. "*117*"
  117. "*118*"
  118. "*119*"
  119. "*120*"
  120. "*121*"
  121. "*122*"
  122. "*123*"
  123. "*124*"
  124. "*125*"
  125. "*126*"
  126. "*127*"
  127. "*128*"
  128. "*129*"
  129. "*130*"
  130. "*131*"
  131. "*132*"
  132. "*133*"
  133. "*134*"
  134. "*135*"
  135. "*136*"
  136. "*137*"
  137. "*138*"
  138. "*139*"
  139. "*140*"
  140. "*141*"
  141. "*142*"
  142. "*143*"
  143. "*144*"
  144. "*145*"
  145. "*146*"
  146. "*147*"
  147. "*148*"
  148. "*149*"
  149. "*150*"
  150. "*151*"
  151. "*152*"
  152. "*153*"
  153. "*154*"
  154. "*155*"
  155. "*156*"
  156. "*157*"
  157. "*158*"
  158. "*159*"
  159. "*160*"
  160. "*161*"
  161. "*162*"
  162. "*163*"
  163. "*164*"
  164. "*165*"
  165. "*166*"
  166. "*167*"
  167. "*168*"
  168. "*169*"
  169. "*170*"
  170. "*171*"
  171. "*172*"
  172. "*173*"
  173. "*174*"
  174. "*175*"
  175. "*176*"
  176. "*177*"
  177. "*178*"
  178. "*179*"
  179.  
  180. }
  181.  
  182. #########################################################################################################
  183. ## SET The channel on which you want this script to work ##
  184. ## Channels Separted by space...and if you want this script to work on all channels leave it as "" ##
  185. #########################################################################################################
  186.  
  187. #aqui el canal donde funcione la tcl si son varios canales separalos por espacios ejemplo "#eggdrop #tcls"
  188. set bchan "#cibersexo"
  189.  
  190. ################
  191. #- Set Reason -#
  192. ################
  193.  
  194. ## mensaje del kick que dara tu bot al infractor
  195. set kickreason "\[Ban Automatico\] -> (Canal No-Apto Para Menores de 18 años. Vuelve cuando cumplas ese requisito.)"
  196.  
  197. ## seleccion del metodo ban
  198. # 1 - *!*@some.domain.com (ban a ip completa)
  199. # 2 - *!*@*.domain.com (ban a terminacion ip o dominio)
  200. # 3 - *!*ident@some.domain.com (ban a identd e ip)
  201. # 4 - *!*ident@*.domain.com (ban a identd y terminacion ip o dominio)
  202. # 5 - *!*ident*@some.domain.com
  203. # 6 - *nick*!*@*.domain.com (ban a nick y dominio)
  204. # 7 - *nick*!*@some.domain.com (ban a nick e ip)
  205. # 8 - nick!ident@some.domain.com (ban a nick, identd e ip)
  206. # 9 - nick!ident@*.host.com (ban nick, identd y dominio)
  207. # 10 - nick*!*@* (ban solo a nick)
  208.  
  209. ## al elegir la opcion 10 significa que solo baneara a nick
  210. set advbantype "1"
  211.  
  212. #--------------------------------------------------------------------------------------------------------------------#
  213. # SCRIPT STARTS FROM HERE...MAKE IT BETTER WITH YOUR SKILLS IF YOU CAN.I DONT RESTRICT YOU TO NOT TO TOUCH CODE! #
  214. #--------------------------------------------------------------------------------------------------------------------#
  215.  
  216. # seccion o ruta donde leera el archivo del contador
  217. set swearkicks "swearkicks.dat"
  218.  
  219. #bind del contador
  220. bind kick - * swear:kick:counter
  221.  
  222. ### para ingresos de nicks a un canal ##
  223. bind join - * join:RanaUsman
  224.  
  225. proc join:RanaUsman {nick uhost hand chan} {
  226. global bnick bchan kickreason temp nicksnokick advbantype banmask swearkicks
  227. if {(([lsearch -exact [string tolower $bchan] [string tolower $chan]] != -1) || ($bchan == ""))} {
  228. if {(![file exists $swearkicks])} { set file [open $swearkicks "w"]; puts $file 1; close $file }
  229. set file [open $swearkicks "r"]; set currentkicks [gets $file]; close $file; set totalkicks [expr $currentkicks];
  230. set banmask "$nick"
  231. set temp 0
  232. foreach imz $nicksnokick {
  233. if {[string match -nocase $imz $nick]} {return 0}
  234. }
  235. foreach i [string tolower $bnick] {
  236. if {[string match "$i" [string tolower $nick]]} {
  237. set temp 1
  238. }
  239. }
  240. if {!$temp} { return } {
  241. putquick "MODE $chan +b $banmask"
  242. putquick "KICK $chan $nick :$kickreason 12,0(Kick #$totalkicks)"
  243. }
  244. }
  245. }
  246.  
  247. ### para cambios de nicks dentro de un canal ##
  248. bind NICK - * cambioanicksmalos
  249.  
  250. proc cambioanicksmalos {nick uhost hand chan newnick} {
  251. global bnick bchan kickreason temp nicksnokick advbantype banmask swearkicks
  252. if {(([lsearch -exact [string tolower $bchan] [string tolower $chan]] != -1) || ($bchan == ""))} {
  253. if {(![file exists $swearkicks])} { set file [open $swearkicks "w"]; puts $file 1; close $file }
  254. set file [open $swearkicks "r"]; set currentkicks [gets $file]; close $file; set totalkicks [expr $currentkicks];
  255. set banmask "$newnick"
  256. set temp 0
  257. foreach imz $nicksnokick {
  258. if {[string match -nocase $imz $newnick]} {return 0}
  259. }
  260. foreach i [string tolower $bnick] {
  261. if {[string match "$i" [string tolower $newnick]]} {
  262. set temp 1
  263. }
  264. }
  265. if {!$temp} { return } {
  266. putquick "MODE $chan +b $banmask"
  267. putquick "KICK $chan $newnick :$kickreason 12,0(Kick #$totalkicks)"
  268. }
  269. }
  270. }
  271.  
  272. proc advs:banmask {uhost nick} {
  273. global advbantype
  274. switch -- $advbantype {
  275. 1 { set banmask "*!*@[lindex [split $uhost @] 1]" }
  276. 2 { set banmask "*!*@[lindex [split [maskhost $uhost] "@"] 1]" }
  277. 3 { set banmask "*!*$uhost" }
  278. 4 { set banmask "*!*[lindex [split [maskhost $uhost] "!"] 1]" }
  279. 5 { set banmask "*!*[lindex [split $uhost "@"] 0]*@[lindex [split $uhost "@"] 1]" }
  280. 6 { set banmask "*$nick*!*@[lindex [split [maskhost $uhost] "@"] 1]" }
  281. 7 { set banmask "*$nick*!*@[lindex [split $uhost "@"] 1]" }
  282. 8 { set banmask "$nick![lindex [split $uhost "@"] 0]@[lindex [split $uhost @] 1]" }
  283. 9 { set banmask "$nick![lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]" }
  284. 10 { set banmask "$nick*!*@" }
  285. default { set banmask "*!*@[lindex [split $uhost @] 1]" }
  286. return $banmask
  287. }
  288. }
  289.  
  290. ### Thanks to NeOmAtRiX for this kick counter ###
  291. proc swear:kick:counter {nick uhost hand chan target reason} {
  292. global botnick swearkicks
  293. if {([string equal $target $botnick])} { return 0 }
  294. if {([string equal $nick $botnick])} {
  295. if {![file exists $swearkicks]} {
  296. putlog "Kick Contador: El \002kick contador archivo\002 no existe. Creando archivo \002$swearkicks\002."
  297. set file [open $swearkicks "w"]
  298. puts $file 1; close $file }
  299. set file [open $swearkicks "r"]
  300. set currentkicks [gets $file]; close $file
  301. set file [open $swearkicks "w"]
  302. puts $file [expr $currentkicks + 1]; close $file
  303. }
  304. }
  305.  
  306. putlog "bad nick rana usman-actualizada por Arnold_X-P red DALnet"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement