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.
Old posts that have not been replied to for several years.
moonchild
Voice
Posts: 4 Joined: Fri Jun 10, 2005 8:09 am
Post
by moonchild » Fri Jun 10, 2005 8:14 am
Hi, I'm searching for a tcl that Collects channel-events like join, part, kick etc. on the channels the bot is in and then posts the collected information to another channel.
Do you understand what I'm talking about?
Does anyone have a ready-to-use script or can help me crating one?
Thanks so far,
moonchild
demond
Revered One
Posts: 3073 Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:
Post
by demond » Fri Jun 10, 2005 12:21 pm
creating one is easy - just bind to events which are of interest to you and inside the handler post to another channel:
Code: Select all
bind join - * pjoin
proc pjoin {n u h c} {
puthelp "privmsg $::otherchan :$n!$u has joined $c"
}
inxs
Voice
Posts: 29 Joined: Fri Jun 10, 2005 5:33 am
Location: India
Post
by inxs » Fri Jun 10, 2005 12:33 pm
demond which channel will it message .. means will it send join/part/quit/kick?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Fri Jun 10, 2005 12:40 pm
to this channel
demond's code is an example, it relays the joins to #channel. If you want it to relay other events read tcl-commands.doc about binds.
moonchild
Voice
Posts: 4 Joined: Fri Jun 10, 2005 8:09 am
Post
by moonchild » Fri Jun 10, 2005 3:36 pm
Thanks a lot for your answers!
moonchild
Voice
Posts: 4 Joined: Fri Jun 10, 2005 8:09 am
Post
by moonchild » Fri Jun 10, 2005 4:06 pm
I wrote the follwing:
bind join - * pjoin
set otherchan "#smart-change"
proc pjoin {n u h c} {
puthelp "privmsg $::otherchan :$n!$u has joined $c"
}
but nothing happens... Am I just too stupid?
inxs
Voice
Posts: 29 Joined: Fri Jun 10, 2005 5:33 am
Location: India
Post
by inxs » Fri Jun 10, 2005 4:53 pm
this code only works on join can u give me the code on quit ?
^DooM^
Owner
Posts: 772 Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:
Post
by ^DooM^ » Fri Jun 10, 2005 7:15 pm
Question:
inxs wrote: this code only works on join can u give me the code on quit ?
Answer:
Sir_Fz wrote: If you want it to relay other events read tcl-commands.doc about binds.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
moonchild
Voice
Posts: 4 Joined: Fri Jun 10, 2005 8:09 am
Post
by moonchild » Sat Jun 11, 2005 3:34 am
Hi, the code you give me does not work... whenever a user joins to the channel the bot does not report that Join-event to the relay channel :-