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 

I just want at timer :(

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Thu Sep 01, 2005 12:09 am    Post subject: I just want at timer :( Reply with quote

Hi, all I want is a simple timer which puts a message in a channel every 2 minutes.
So the channel should be #jonathan
the message should be "hello"
and every 2 minutes.

Can someone help me? thank you
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 01, 2005 12:58 am    Post subject: Reply with quote

read tcl-commands.doc, pay attention to [timer] and [putserv]
Back to top
View user's profile Send private message Visit poster's website
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Thu Sep 01, 2005 1:01 am    Post subject: Reply with quote

ok i made one but it doesnt work. whats wrong?

Code:

set channel "#omfgnaps #spielersuche"

set time 3
set text {
"hi"
}



if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }

proc go {} {
global channel time text timer
foreach chan $channel {
foreach line $text { putserv "PRIVMSG $chan :$line" }
}
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }
}

putlog
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 01, 2005 1:34 am    Post subject: Reply with quote

you need to learn how to post by reading the top sticky post on this forum

try again after removing [lsearch] checks
Back to top
View user's profile Send private message Visit poster's website
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Thu Sep 01, 2005 1:48 am    Post subject: Reply with quote

thanks.
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Thu Sep 01, 2005 2:00 am    Post subject: Reply with quote

heh, you made me drop my real insult too
Back to top
View user's profile Send private message Visit poster's website
isis123
Voice


Joined: 01 Sep 2005
Posts: 13

PostPosted: Thu Sep 01, 2005 2:05 am    Post subject: Reply with quote

i missunderstood you, i thought you called me names, sorrsy.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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