botlending forum  

Go Back   botlending forum > Eggdrop & TCL > Tcl scripting

Tcl scripting Tcl scripting related questions

Reply
 
LinkBack Thread Tools Display Modes
Old 23-03-2007, 22:21   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Posts: 8
Rep Power: 0
MasT3r is an unknown quantity at this point
Exclamation help chanset

uitati ce am nevoie
acesta e codu
Code:
### Introduction
# Anti Bad-Nick Script
# SadSalman <-> salman.mehmood@gmail.com
# Version No: 0.2


### Features:
# * Sets a 2 Minute Channel ban on user who writes any of the
#   defined bad words
# * Doesn't ban users with +o OR +f flags
# * Logs ALL user/op messages containing the defined words
# * Strips Character Codes from Messages

### Set Bad Words that you want the Bot to Kick on
set badnicks { 
"sex"
"fuck"
"randi"
"s3x"
"hot"
"lund"
"asshole"
"bitch"
"slut"
"cock"
"cunt"
"nigger"
"dickhead"
"hot*guy"
"faggot"
"prostitute"
"whore"
"lesbian"
"naked"
"xxx"
"horny"
"orgasm"
"bastard"
"hooker"
"rapist"
"orgy"
"penis"
"vagina"
"clit"
"cybersex"
"lesbian"
"prick"
"masturbate"
"masturbation"
"jackoff"
"blowjob"
"bigcock"
"bigdick"
"wetpussy"
"blow*job"
"superbitch"
"fuckwit"
"dumbfuck"
"fucknut"
"bisexual"
"transexual"
"transvestite"
"homosexual"
"lesbi"
"testicle"
"sexual"
"asswipe"
"jackass"
"dumbass"
"intercourse"
"clitoris"
"incest"
"nigga"
"nigger"
"molest"
"breast"
"boobs"
"fuck"
"fuckers"
"fucking"
"sexual"
"porno"
"condom"
"erect"
"erection"
"phuck"
"masturbating"
"motherfucker"
"oralsex"
"analsex"
"****"
"****"
"mui*"
"invade*"
"clon*"
"*pul*"
"coaie*"
"coaie"
"*coaie"
"fut"
"muist*"
"muist"
"wtf"
"orgy"
"stfu"
"bitch"
"slut"
"biatch"
"my dick"
"my penis"
"my prick"
"slut"
"fucck"
"cunt"
"nigger"
"nigga"
"faggot"
"prostitute"
"whore"
"lesbian"
"horny"
"orgasm"
"asshole"
"ass hole"
"bastard"
"incest"
"orgy"
"penis"
"vagina"
"clit"
"cyber with"
"cybersex"
"cyber sex"
"jerk off"
"jerking off"
"bigcock"
"hardcock"
"bigdick"
"wetpussy"
"wet pussy"
"big cock"
"big dick"
"huge cock"
"huge dick"
"large cock"
"hard cock"
"large dick"
"wet pussy"
"fuk"
"fuck"
"fcuk"
"blowjob"
"blow job"
"blow*job"
"lick my pussy"
"my pussy"
"my dick"
"hot pussy"
"hard cock"
"long cock"
"my cock"
"hard dick"
"long dick"
"eat shit"
"gay person"
"ass wipe"
"asswipe"
"peice of shit"
"suck my dick"
"transvestite"
"homo sexual"
"homosexual"
"have intercourse"
"have * intercourse"
"boobs"
"cumfiesta"
"condom"
"erect"
"phuck"
"masturbat"
"kiss my ass"
"pimp"
"****"
"****"
"*****"
"*****"
"****"
"wtf"
"stfu"
}

### Set Your Ban Reason
set badnickreason "Bad Nick, Please change it and rejoin"

### Set Ban Time
set bnduration 24h

### Begin Script:
## (Don't change anything below here... Unless you know tcl)


## Binding all joins to our Process
bind join - * filter_bad_nicks
bind nick - * filter_bad_nicks_change

## Starting Process
proc filter_bad_nicks {nick uhost hand channel} {
 global badnicks badnickreason banmask botnick bnduration
  set handle [nick2hand $nick]
   set banmask "*$nick*!*@*" 
	foreach badnick [string tolower $badnicks] {     
	if {[string match *$badnick* [string tolower $nick]]}  {
       if {[matchattr $handle +f]} {
           putlog "-Anti Bad Nick Script- $nick ($handle) with +f joined $channel"
       } elseif {[matchattr $handle +o]} {
           putlog "-Anti Bad Nick Script- $nick ($handle) with +o flags joined $channel"
       } else {
           putlog "-Anti Bad Nick Script- KICKED $nick on $channel"
           putquick "KICK $channel $nick :$badnickreason"
           newchanban $channel $banmask $botnick $badnickreason $bnduration
       }
    }
  }
}

## Starting Process
proc filter_bad_nicks_change {nick uhost hand channel newnick} {
 global badnicks badnickreason banmask botnick
  set handle [nick2hand $newnick]
   set banmask "*$newnick*!*@*" 
   set duration 10m
	foreach badnick [string tolower $badnicks] {     
	if {[string match *$badnick* [string tolower $newnick]]}  {
       if {[matchattr $handle +f]} {
           putlog "-Anti Bad Nick Script- $nick ($handle) with +f changed nickname to $newnick on $channel"
       } elseif {[matchattr $handle +o]} {
           putlog "-Anti Bad Nick Script- $nick ($handle) with +o flags changed nickname to $newnick on $channel"
       } else {
           putlog "-Anti Bad Nick Script- KICKED $newnick on $channel"
           putquick "KICK $channel $newnick :$badnickreason"
           newchanban $channel $banmask $botnick $badnickreason 2m
       }
    }
  }
}


bind join - * filter_bad_nicks
bind nick - * filter_bad_nicks_change
putlog "SadSalman's Anti Bad Nick Script Loaded"
akm..cum fac sa nu mai dea ban decat dak e setat +badnick ( chanset +Badnick) ??
ca ,ii dau chanset +badnick si ii da ban..dar ii da ban si dak e -badnick ..ce sa-i fac ?? am pus in settings setudef flag badnick ,in local n 22 badnick ...stie careva ??
MasT3r is offline   Reply With Quote
Old 24-03-2007, 16:18   #2 (permalink)
TCB & Ratings projects Member, #Mythic representative
 
arcade's Avatar
 
Join Date: Jun 2004
Location: In fatza calculatorului!!
Age: 19
Posts: 218
Rep Power: 37
arcade is on a distinguished road
Send a message via Yahoo to arcade
Default

sub asta:
Code:
proc filter_bad_nicks {nick uhost hand channel} {
 global badnicks badnickreason banmask botnick bnduration
si sub asta:
Code:
proc filter_bad_nicks_change {nick uhost hand channel newnick} {
 global badnicks badnickreason banmask botnick
adaugi:
Code:
if {![channel get $channel badnick]} {return}
__________________
Fuck oFF!

Last edited by lsn; 30-03-2007 at 22:19.
arcade is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chanset Freezed a&a light script 1 25-11-2005 12:37
!chanset, on/off Freezed Tcl scripting 1 29-05-2005 20:22
Comenzile !chanset ... Free4u Tcl scripting 1 10-12-2004 08:06


All times are GMT +3. The time now is 07:15.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.