This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

ban-time

Help for those learning Tcl or writing their own scripts.
Post Reply
M
Merky
Voice
Posts: 17
Joined: Sun Jan 21, 2007 9:07 am

ban-time

Post by Merky »

hi..
how to i set ban-time in tcl?
like /msg botnick bantime 10
and bot auto auban every 10 minute
tq for help me
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

hi,

to auto-ban what?
Once the game is over, the king and the pawn go back in the same box.
M
Merky
Voice
Posts: 17
Joined: Sun Jan 21, 2007 9:07 am

Post by Merky »

ehh sorry
i mean auto unban....
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

You will have to be more specific on what's the result you are looking for.
Once the game is over, the king and the pawn go back in the same box.
M
Merky
Voice
Posts: 17
Joined: Sun Jan 21, 2007 9:07 am

Post by Merky »

ops ban in channel
* Me sets mode: +b *!*timE@*.190.47.*
and if set ban-time to 10 minute, bot unban this ban in 10 minute
if set 15 minute bot check if ban list 15 minute and unban

if set /msg botnick bantime 10
bot auto unban every 10 minute

if set /msg botnick bantime 15
bot auto unban every 15 minute

sorry for my speling
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

There's this:
# Set this setting to 1 if you want your bot to expire bans/exempts/invites set
# by other opped bots on the channel.
set force-expire 0
inside eggdrop.conf (or used to be in 1.6.21 last time I checked). I never used this and sounds like would do what you are looking for. Since the duration is set into the configuration this means you would need to make a piece of code to alter the time. Keep in mind this is a global setting, meaning it would lift bans from all channels it has channel operator status on.

Safest option would be a separate script with a channel based setting. I could help you with this but will take a bit cos I'm a bit busy with stuff at work. :roll:
Once the game is over, the king and the pawn go back in the same box.
M
Merky
Voice
Posts: 17
Joined: Sun Jan 21, 2007 9:07 am

Post by Merky »

ty for you help caesar
Post Reply