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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
darton
Op
Posts: 155 Joined: Sat Jan 21, 2006 11:03 am
Post
by darton » Mon Apr 17, 2006 5:21 pm
Hello!
My bot is in two channels and in one of these channels there is another bot. Now my bot should repeat everything what the other bot says, but into another channel.
With a mirc-script it's just:
Code: Select all
if ($nick == otherbot) { msg #channel2 $1- }
Can you help me to make this with tcl?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Mon Apr 17, 2006 5:46 pm
Code: Select all
bind pubm - "#channel1 *" relay:bot
proc relay:bot {nick uhost hand chan arg} {
if {[string equal -nocase otherbot $nick]} {
putserv "privmsg #channel2 :$arg"
}
}
evac1K
Voice
Posts: 7 Joined: Mon Jun 19, 2006 7:19 pm
Post
by evac1K » Tue Jun 20, 2006 12:34 am
what part of that do you edit?
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Tue Jun 20, 2006 3:05 am
#channel1, otherbot and #channel2.
Is that not very obvious?
evac1K
Voice
Posts: 7 Joined: Mon Jun 19, 2006 7:19 pm
Post
by evac1K » Tue Jun 20, 2006 11:33 pm
still not working :\