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 

Need a channel Protection Script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Slodge
Voice


Joined: 15 Aug 2005
Posts: 3

PostPosted: Mon Aug 15, 2005 3:49 am    Post subject: Need a channel Protection Script Reply with quote

i need a tcl for the following - hope u can help me out ...

1. Kick and ban user for 5mins who repeats 4times in 3secs (Reason : No Repeat Flood)
2. Kick and ban user for 3mins who notice a channel , any kind of notice (Reason : Notice is not allowed here)
3. Kick and ban user for 5mins who use excessive ctrl-coded (Reason : Excessive control codes )
4. Auto reply private msg with the word 'I am an eggdrop bot $version. Please msg my owner $owner if it's important'
5. Ban user who flyby's for 3mins (Reason : Flyby's Punished)
6. Ignore channel banlist request from an unknown user

Though i found some channel protection tcl at the tcl archieve ... i want all of this in one tcl (all-in-one) . Please help

_________________
Ya!!!
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Aug 15, 2005 6:54 am    Post subject: Reply with quote

AllFloodProtection does all these and more, as for the eggdrop private reply thing use:
Code:
bind msgm - * reply:user

proc reply:user {nick uhost hand arg} {
 puthelp "PRIVMSG $nick :I am an eggdrop bot [lindex $::version 0]. Please msg my owner $::owner if it's important."
}

But is lame IMO.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Aug 15, 2005 9:21 pm    Post subject: Reply with quote

Sir_Fz wrote:
But is lame IMO.

An IRCOp's aide? Makes their life easier I guess. Smile
_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Mon Aug 15, 2005 11:18 pm    Post subject: Reply with quote

Bleh you just need to use a timer to pushmode and remove the ban whenever you like, 5 mins, 1min, 1day, 1 year etc. Besides there is nothing such as all in one script. It's basically a text file so you can add all your tcl scripts into one file, like I have a 600kb file, or load them seperately in different files.
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Aug 16, 2005 5:53 am    Post subject: Reply with quote

Actually no it isn't just copy the scripts into 1 file, that would just make editing scripts harder. If you write a script who's purpose is to manage all floods for example then you'll be able to synchronize between the procs (i.e. tcl commands and variables). This way you may be able to have better management of floods.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Tue Aug 16, 2005 7:54 am    Post subject: Reply with quote

Well basically all channel flood protections and private protections are already built in the eggdrop i.e. flood-chan, flood-join, flood-ctcp, flood-kick, flood-deop and flood-msg. We can however use TCL to enhance these further and choose our own style how we would like to utilize them.
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
demond
Revered One


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

PostPosted: Wed Aug 17, 2005 1:09 am    Post subject: Reply with quote

awyeah wrote:
Bleh you just need to use a timer to pushmode and remove the ban whenever you like, 5 mins, 1min, 1day, 1 year etc. Besides there is nothing such as all in one script. It's basically a text file so you can add all your tcl scripts into one file, like I have a 600kb file, or load them seperately in different files.


using timers for bans is pointless, eggdrop has timed ban commands for a reason
Back to top
View user's profile Send private message Visit poster's website
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Wed Aug 17, 2005 2:31 am    Post subject: Reply with quote

Depends if you want to use newchanban/newban or want to do it your own way, using pushmode +b, putserv +b and then removing it -b with a timer/utimer.
_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
demond
Revered One


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

PostPosted: Wed Aug 17, 2005 2:52 am    Post subject: Reply with quote

awyeah wrote:
Depends if you want to use newchanban/newban or want to do it your own way, using pushmode +b, putserv +b and then removing it -b with a timer/utimer.


why would you want to do that "your own way"? what's the rationale behind using explicit timer instead of the built-in one? the only functional difference between the two is that chanops can remove a ban which is not on the bot's banlist and it won't be enforced again upon culprit re-entering the channel, but that's hardly the desired behaviour of a protection script which is meant to punish
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Wed Aug 17, 2005 11:22 am    Post subject: Reply with quote

for the later case you can use a script again that enables chanops known by the bot to be able to remove them. An example would be my banmanger script Very Happy.
almost everything can be done via scripts and everything can be done (keeping TCP and IRC restrictions in mind) directly modifiing the eggdrop source ^-^. Its just a matter of effort.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
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