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.

Echo everything of a certain nick

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
darton
Op
Posts: 155
Joined: Sat Jan 21, 2006 11:03 am

Echo everything of a certain nick

Post by darton »

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?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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"
 }
}
e
evac1K
Voice
Posts: 7
Joined: Mon Jun 19, 2006 7:19 pm

Post by evac1K »

what part of that do you edit?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

#channel1, otherbot and #channel2.

Is that not very obvious?
e
evac1K
Voice
Posts: 7
Joined: Mon Jun 19, 2006 7:19 pm

Post by evac1K »

still not working :\
Post Reply