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 

inactivity on the channel

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


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Apr 27, 2010 1:55 pm    Post subject: inactivity on the channel Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Apr 27, 2010 2:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
neoclust
Halfop


Joined: 14 Aug 2009
Posts: 55

PostPosted: Tue Apr 27, 2010 6:35 pm    Post subject: Reply with quote

Thanks man
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