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 

tcl to partyline

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


Joined: 12 Feb 2006
Posts: 3

PostPosted: Sun Feb 12, 2006 6:30 pm    Post subject: tcl to partyline Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Feb 12, 2006 7:32 pm    Post subject: Re: tcl to partyline Reply with quote

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
View user's profile Send private message Visit poster's website
koos
Voice


Joined: 12 Feb 2006
Posts: 3

PostPosted: Sun Feb 12, 2006 7:38 pm    Post subject: Reply with quote

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 Sad 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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sun Feb 12, 2006 7:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
koos
Voice


Joined: 12 Feb 2006
Posts: 3

PostPosted: Thu Feb 16, 2006 7:28 am    Post subject: Re: tcl to partyline Reply with quote

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
View user's profile Send private message
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