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.
Help for those learning Tcl or writing their own scripts.
koos
Voice
Posts: 3 Joined: Sun Feb 12, 2006 6:22 pm
Post
by koos » Sun Feb 12, 2006 6:30 pm
Newbie question.
Just start programming in TCL and have a question.
A script (chatstats) is activated by typing '.go #channelname' on the partyline.
Now i've created some timers so at specific time the chatstats had to log events en next timer '.stop #channelname' quits logging.
My question:
With what command can i get just only '.go #channelname' at the partyline to activate chatstats.
Chatstats use a bind:
bind dcc nC|C go cs:go
bind dcc nC|C stop cs:stop
Can some point me to the good direction of programming this.
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Sun Feb 12, 2006 7:32 pm
koos wrote: My question:
With what command can i get just only '.go #channelname' at the partyline to activate chatstats.
What do you mean?
koos
Voice
Posts: 3 Joined: Sun Feb 12, 2006 6:22 pm
Post
by koos » Sun Feb 12, 2006 7:38 pm
just a piece of the script see rule 5 and 10 these rule has to activate chanstats script.
Code: Select all
if { [ string tolower $dayofweeknr ] == "fri"} {
# when its friday execute
bind time - "00 10 * * *" stat_check_on
proc stat_check_on {min hour day month year} {
dccbroadcast ".go #help"
putlog "Helplogtimer start"
}
bind time - "30 22 * * *" stat_check_off
proc stat_check_off {min hour day month year} {
dccbroadcast ".stop #help"
putlog "Helplogtimer stop"
}
}
so above isn''t working
i'm looking for a right solution.
code tags added, sorry
Last edited by
koos on Sun Feb 12, 2006 7:59 pm, edited 2 times in total.
Alchera
Revered One
Posts: 3344 Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:
Post
by Alchera » Sun Feb 12, 2006 7:52 pm
Use code tags when posting code koos. Please edit your post and rectify.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
koos
Voice
Posts: 3 Joined: Sun Feb 12, 2006 6:22 pm
Post
by koos » Thu Feb 16, 2006 7:28 am
Sir_Fz wrote: What do you mean?
I just want that the timerscript will give the .go #channelname command on the partyline as DCC, so the chatstats script will react on that (activation).
Now we have to start by hand, but i want timers doing it on specific times.