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.

imitate script

Old posts that have not been replied to for several years.
Locked
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

imitate script

Post by Kimmi »

Hello...

Im not sure how to explain this. Im looking for a script that does this:

<Dude> Hello
<Bot> Hello

<Girl> Hi
<Bot> Hi

<Mann> bla bla bla bla
<Bot> bla bla bla bla

hehe.. anyone understand what script Im looking for, a bot that says the exate same thing as some person does in a chan., just a few sec later.

I have tryed to search for this kind of script.. but I cant find any.
So, anyone here has a script that does this?

Kimmi
Kimmi@EFnet
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

bind pubm - * imitate
proc imitate {n u h c t} {puthelp "privmsg $c :$t"}

not to mention that such a script is pointless ^^
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

[censored]... I got a problem... how can I make this script only work in one channel ?
Kimmi@EFnet
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

RTFM

TCL-Commands.doc is your friend.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

:p I have looked there.. but I dont understand programing... I just dont understand how tcl and all that other stuff works...

anyone else that can help me plz.
Kimmi@EFnet
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Code: Select all

#Set the channel for this script to work on
set imitate_chan "#mychannel"

bind pubm - * imitate

proc imitate {n u h c t} {
 if {[string equal -nocase $::imitate_chan $c]} {
  puthelp "privmsg $c :$t"
  }
} 
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

Kimmi wrote::p I have looked there.. but I dont understand programing... I just dont understand how tcl and all that other stuff works...

anyone else that can help me plz.
then you didnt look close enough, I will quote the intresting part for you:

Code: Select all

    (6)  PUBM (stackable)
         bind pubm <flags> <mask> <proc>
         procname <nick> <user@host> <handle> <channel> <text>

         Description: just like MSGM, except it's triggered by things said
           on a channel instead of things /msg'd to the bot. The mask is
           matched against the channel name followed by the text and can
           contain wildcards. Also, if a line triggers a PUB bind, it will not
           trigger a PUBM bind.
         Module: irc
so no need to actually unterstand programming or TCL, you just have to understand basic string matching algorythmn and how to read English :P.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
K
Kimmi
Halfop
Posts: 58
Joined: Thu Jul 24, 2003 4:17 pm
Location: Norway
Contact:

Post by Kimmi »

thanx
Kimmi@EFnet
Locked