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 

Script to make bot part channels when not in use

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
RejiMC
Voice


Joined: 08 Jul 2006
Posts: 2

PostPosted: Mon Jul 10, 2006 2:05 am    Post subject: Script to make bot part channels when not in use Reply with quote

Is there a script which will make the bot part channel if its not used for a while? Bot is in multiple channels so a simple timer wont work.

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


Joined: 13 Jul 2004
Posts: 64
Location: Germany

PostPosted: Thu Jul 13, 2006 5:11 pm    Post subject: Reply with quote

What's the definition of an unused channel?
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Fri Jul 14, 2006 3:10 pm    Post subject: .. Reply with quote

Unused = No users right ? :s
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
RejiMC
Voice


Joined: 08 Jul 2006
Posts: 2

PostPosted: Mon Jul 17, 2006 4:26 pm    Post subject: Reply with quote

Sorry for the confussion, its not unused channel but unused bot...
will explain the situation... we run a small network and provide a bible bot for our channels, some misuse it just to keep the room open, and some request it and then forget all about it, so what we are looking for is something like if the bot was never in use for say a week, it should part that channel, or at least when the channel gets droped (-r).

If anyone can help please do, Thank you.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Mon Jul 17, 2006 7:09 pm    Post subject: Reply with quote

Code:

bind mode - "#mychannel -r" someproc
proc someproc {nick uhost hand chan mode target} {
                channel set $chan +inactive
                putcmdlog "Bot setting channel +inactive and leaving $chan"
}

Should work..Didn't test it..
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Tue Jul 18, 2006 1:33 am    Post subject: Reply with quote

that obviously won't work as it needs to check with *all* channels, not 1 specific channel.

Use

Code:
bind mode -|- "* -r" someproc
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 Requests 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