| View previous topic :: View next topic |
| Author |
Message |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Apr 27, 2010 1:55 pm Post subject: inactivity on the channel |
|
|
| My concept is simple I want to implement a code that can examine the inactivity of an operator on the channel, once it reaches 30 minutes without saying a word in the channel the bot deop it, an idea plz thanks |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Tue Apr 27, 2010 2:16 pm Post subject: |
|
|
I'd probably use the chanlist command to get a list of members in the channel, then do a foreach-loop and test if they're opped (using isop) and the idle-time using getchanidle and see if this is greater than 30 or not.
You'll also want to trigger this code on a regular basis, to have it run every minute, you could use the time binding: "bind time - * yourproc" _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Tue Apr 27, 2010 6:35 pm Post subject: |
|
|
| Thanks man |
|
| Back to top |
|
 |
|