| View previous topic :: View next topic |
| Author |
Message |
RejiMC Voice
Joined: 08 Jul 2006 Posts: 2
|
Posted: Mon Jul 10, 2006 2:05 am Post subject: Script to make bot part channels when not in use |
|
|
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 |
|
 |
avilon Halfop

Joined: 13 Jul 2004 Posts: 64 Location: Germany
|
Posted: Thu Jul 13, 2006 5:11 pm Post subject: |
|
|
| What's the definition of an unused channel? |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Fri Jul 14, 2006 3:10 pm Post subject: .. |
|
|
Unused = No users right ? :s _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
RejiMC Voice
Joined: 08 Jul 2006 Posts: 2
|
Posted: Mon Jul 17, 2006 4:26 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Jul 17, 2006 7:09 pm Post subject: |
|
|
| 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 |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Tue Jul 18, 2006 1:33 am Post subject: |
|
|
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 |
|
 |
|