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.

inactivity on the channel

Help for those learning Tcl or writing their own scripts.
Post Reply
n
neoclust
Halfop
Posts: 55
Joined: Fri Aug 14, 2009 11:03 am

inactivity on the channel

Post by neoclust »

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
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
n
neoclust
Halfop
Posts: 55
Joined: Fri Aug 14, 2009 11:03 am

Post by neoclust »

Thanks man
Post Reply