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 

time

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
manwlhsgr
Voice


Joined: 27 Feb 2007
Posts: 6

PostPosted: Sun Apr 15, 2007 9:56 am    Post subject: time Reply with quote

i I want to make in eggdrop my say something per 30mins. say a proposal per 30mins. That you become this?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 15, 2007 12:18 pm    Post subject: Reply with quote

Code:
bind time - {?0 *} send:msg

proc send:msg {m args} {
 if {[string match {[30]0} $m]} {
  puthelp "privmsg #channel :A proposal is entered here"
 }
}

This sends "A proposal is entered here" to #channel every 30 minutes (you might want to edit these Wink).
_________________
Follow me on GitHub

- Opposing

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


Joined: 27 Feb 2007
Posts: 6

PostPosted: Mon Apr 16, 2007 3:09 pm    Post subject: Reply with quote

bind time - {?0 *} send:msg

proc send:msg {m args} {
if {[string match {[5]0} $m]} {
puthelp "privmsg #hellas :A proposal is entered here"
}
}
so ? what i must to change?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Apr 16, 2007 3:22 pm    Post subject: Reply with quote

What you need to change?
Well, that depends on what you intend to accomplish..

The code posted by Sir_Fz should do exactly what you requested in your initial post. Only thing you should have to edit would be the message that you wish to be sent to your channel (this should be obvious from Sir_Fz's comments)
_________________
NML_375, idling at #eggdrop@IrcNET
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 -> Script Requests 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