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 

help this script

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


Joined: 12 Jun 2005
Posts: 62
Location: netherlands

PostPosted: Sun Feb 19, 2006 10:50 am    Post subject: help this script Reply with quote

Hello this script works great
but it will every minute runs i want it to every 30 minutes
so who can help me thnx
Code:
bind time - * qstat ;# runs every minute
proc qstat {m h d mo y} {
   if ![catch {set res [exec /path/to/qstat -ut2s 217.77.176.198:7777]}] {
      foreach line [split $res \n] {
         puthelp "privmsg #channel :$line"
      }
   }
}
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Feb 19, 2006 10:56 am    Post subject: Reply with quote

Code:
bind time - * qstat
proc qstat {m args} {
   if {[regexp {00|30} $m]} {
      if ![catch {set res [exec /path/to/qstat -ut2s 217.77.176.198:7777]}] {
         foreach line [split $res \n] {
            puthelp "privmsg #channel :$line"
         }
      }
   }
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
whiteshark
Halfop


Joined: 12 Jun 2005
Posts: 62
Location: netherlands

PostPosted: Sun Feb 19, 2006 11:02 am    Post subject: Reply with quote

Thnx Sir_Fz
Very Happy
Back to top
View user's profile Send private message Visit poster's website
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