| View previous topic :: View next topic |
| Author |
Message |
koos Voice
Joined: 12 Feb 2006 Posts: 3
|
Posted: Sun Feb 12, 2006 6:30 pm Post subject: tcl to partyline |
|
|
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. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Feb 12, 2006 7:32 pm Post subject: Re: tcl to partyline |
|
|
| koos wrote: | My question:
With what command can i get just only '.go #channelname' at the partyline to activate chatstats. |
What do you mean? _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
koos Voice
Joined: 12 Feb 2006 Posts: 3
|
Posted: Sun Feb 12, 2006 7:38 pm Post subject: |
|
|
just a piece of the script see rule 5 and 10 these rule has to activate chanstats script.
| Code: |
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 |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sun Feb 12, 2006 7:52 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
koos Voice
Joined: 12 Feb 2006 Posts: 3
|
Posted: Thu Feb 16, 2006 7:28 am Post subject: Re: tcl to partyline |
|
|
| 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. |
|
| Back to top |
|
 |
|