egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Universal channel script
Goto page Previous  1, 2, 3 ... 12, 13, 14, 15  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Tue Nov 21, 2006 8:50 am    Post subject: Reply with quote

demond i have two questions in your spam proc you used:
Quote:
proc spam {nick uhost hand chan args} {
variable colore
fixargs chan text $args
if {[isbotnick $chan]} {return}
if {![channel get $chan x:spam]} {return}
regsub -all $colore $text {} text
regsub -all -nocase $chan $text {} text
if {[regexp {(?i)(http://|www\.|irc\.|\s#\w|^#\w)} $text]} {
punish $nick $uhost $hand $chan spam
}
}


why didnt you escaped special char in http:// and i tried to add few more checks it didnt work.

Quote:
if {[regexp {(?i)(http://|www\.|irc\.|\s#\w|^#\w|\.com|044)} $text]} {

where; .com is anything with mysite.com becasue sometimes they do not use http://* or www.* and 044 my country code
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Nov 24, 2006 5:10 am    Post subject: Reply with quote

obviously you aren't very familiar with regular expressions; I'd suggest you go here and learn more before trying to modify any RE
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Fri Nov 24, 2006 8:49 pm    Post subject: Reply with quote

ok, thanks for mentioning the link but can you explain this please?
Code:
if {[isbotnick $chan]} {return}

this is a wrong expression cause,
Quote:
isbotnick <nick>
Returns: 1 if the nick matches the botnick; 0 otherwise
Module: server

...and its everywhere in the script
Back to top
View user's profile Send private message
dusk
Halfop


Joined: 06 Mar 2005
Posts: 91
Location: Belgium

PostPosted: Fri Nov 24, 2006 9:42 pm    Post subject: Reply with quote

honeybee wrote:
ok, thanks for mentioning the link but can you explain this please?
Code:
if {[isbotnick $chan]} {return}

this is a wrong expression cause,
Quote:
isbotnick <nick>
Returns: 1 if the nick matches the botnick; 0 otherwise
Module: server

...and its everywhere in the script


duh!! whats's wrong about it?? you want to filter it out and let the bot react on it's own chatter?? btw isbotnick is an expression on its own it doesn't work like isbotnick <nick> .


GRTZ
_________________
me likes me eggie Razz
Back to top
View user's profile Send private message MSN Messenger
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Fri Nov 24, 2006 11:50 pm    Post subject: Reply with quote

I guess you should read before posting, posting without understanding is a waste of time.
Back to top
View user's profile Send private message
dusk
Halfop


Joined: 06 Mar 2005
Posts: 91
Location: Belgium

PostPosted: Sat Nov 25, 2006 12:13 am    Post subject: Reply with quote

Euh...aren't you the one that doesn't understand??

if {[isbotnick $chan]} {return} <-- nothing wrong about that

spammer != botnick (so returns 0): proc goes on
spammer == botnick (so returns 1): proc returns


that should be verry basic ...
_________________
me likes me eggie Razz
Back to top
View user's profile Send private message MSN Messenger
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Sat Nov 25, 2006 1:07 am    Post subject: Reply with quote

you didnt read the post again.
Quote:
isbotnick <nick>
Returns: 1 if the nick matches the botnick; 0 otherwise
Module: server

so, this is wrong
Code:
if {[isbotnick $chan]} {return}

instead,
Code:
if {[isbotnick $nick]} {return}
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sat Nov 25, 2006 4:41 am    Post subject: Reply with quote

honeybee, what you apparently don't understand is that $chan is a Tcl variable which - in that particular context it's being used - can contain not only a channel name but also nickname - i.e. a channel name OR nickname - so there is nothing wrong with [isbotnick $chan] and it's necessary
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
honeybee
Halfop


Joined: 01 Jan 2006
Posts: 80

PostPosted: Sat Nov 25, 2006 9:02 am    Post subject: Reply with quote

ok got it thanks.
Back to top
View user's profile Send private message
demon
Voice


Joined: 14 Dec 2006
Posts: 12

PostPosted: Wed Dec 20, 2006 8:52 am    Post subject: Reply with quote

hmm didnt understand something.. that script to find spammers etc create a clone and join it on the chans to check ? or cycle the chans itself ? if is the 1st is fantastic!!!

Thanks
Back to top
View user's profile Send private message
dusk
Halfop


Joined: 06 Mar 2005
Posts: 91
Location: Belgium

PostPosted: Wed Dec 20, 2006 9:55 am    Post subject: Reply with quote

demon wrote:
hmm didnt understand something.. that script to find spammers etc create a clone and join it on the chans to check ? or cycle the chans itself ? if is the 1st is fantastic!!!

Thanks


It creates a forkclone that cycles the chan, the bot itself doesn't cycle, only the clone.
_________________
me likes me eggie Razz
Back to top
View user's profile Send private message MSN Messenger
demon
Voice


Joined: 14 Dec 2006
Posts: 12

PostPosted: Thu Dec 21, 2006 9:17 am    Post subject: Reply with quote

ok FANTASTIC! Smile

That clone take random nicks/idents/realname etc? or you can set them also somewhere?

Thanks
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Fri Dec 22, 2006 10:01 pm    Post subject: Reply with quote

no, it takes bot's altnick and realname
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
e-force
Voice


Joined: 04 Jan 2005
Posts: 23

PostPosted: Sat Dec 23, 2006 1:46 pm    Post subject: badword Reply with quote

about that badword detect in public chat.
When someone write a badword in the channel, bot isn`t get an action if the word is in some text.Like an example i will give this:

<badman> mybadword
<bot> k:b
----------
<badman> this is my badword
<bot> do nothing
Is that problem in me?

Bot settings:
+x:bad
x:other:match: string
Back to top
View user's profile Send private message
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Sat Jan 06, 2007 3:45 am    Post subject: Reply with quote

I know this is kinda old but:

Alchera wrote:
Sheldon wrote:
is there anyway.. to make the warning a red colour in the main chat.... then everyone sees it

Not always appropriate as that in itself will fill the channel with rubbish.

It would also appear some of your users ignore private messages (as I do). To have the warnings sent via notice (no one ignores them) replace:
Code:
"w" {putserv "privmsg $nick :\002\0034$reason"}

with
Code:
"w" {putserv "notice $nick :\002\0034$reason"}


I change it, but somehow it still privmsg eventhough I changed it to notice, I rehashed, didn't help, I restarted, didn't help.
Any ideas why?

ps. Great script btw.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 12, 13, 14, 15  Next
Page 13 of 15

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber