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 

ban-time

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Merky
Voice


Joined: 21 Jan 2007
Posts: 17

PostPosted: Sun Jan 14, 2018 4:08 pm    Post subject: ban-time Reply with quote

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
Back to top
View user's profile Send private message
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3516
Location: Top Secret

PostPosted: Mon Jan 15, 2018 2:14 am    Post subject: Reply with quote

hi,

to auto-ban what?
_________________
You may say anything about me, but at least don't misspell my name. xD
Back to top
View user's profile Send private message
Merky
Voice


Joined: 21 Jan 2007
Posts: 17

PostPosted: Mon Jan 15, 2018 5:39 am    Post subject: Reply with quote

ehh sorry
i mean auto unban....
Back to top
View user's profile Send private message
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3516
Location: Top Secret

PostPosted: Mon Jan 15, 2018 7:54 am    Post subject: Reply with quote

You will have to be more specific on what's the result you are looking for.
_________________
You may say anything about me, but at least don't misspell my name. xD
Back to top
View user's profile Send private message
Merky
Voice


Joined: 21 Jan 2007
Posts: 17

PostPosted: Tue Jan 16, 2018 12:08 am    Post subject: Reply with quote

ops ban in channel
Quote:
* 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
Back to top
View user's profile Send private message
caesar
Ass Kicker


Joined: 14 Oct 2001
Posts: 3516
Location: Top Secret

PostPosted: Tue Jan 16, 2018 2:27 am    Post subject: Reply with quote

There's this:
Quote:

# 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. Rolling Eyes
_________________
You may say anything about me, but at least don't misspell my name. xD
Back to top
View user's profile Send private message
Merky
Voice


Joined: 21 Jan 2007
Posts: 17

PostPosted: Tue Jan 16, 2018 9:34 am    Post subject: Reply with quote

ty for you help caesar
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 -> Scripting Help 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