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 

Help with adjusting a relay script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Football
Master


Joined: 26 Dec 2008
Posts: 205
Location: Quakenet, #Football

PostPosted: Thu Sep 13, 2012 5:59 am    Post subject: Help with adjusting a relay script Reply with quote

Code:
# Channel flag.
setudef flag monitorText

# Subchannel.
set subchannel #lineups

# Bind all text in all channels.
bind pubm - * monitorProc
proc monitorProc {nick uhost hand chan text} {
global subchannel

    # Check channel flag.
    if {![channel get $chan monitorText]} {
        return 0
    }

    # Check text for matching values.
    if { [string match "*chat with me*" $text] } {

        # Send matching text to subchannel.
        putserv "PRIVMSG #chatworld :$text"
    }
}


Could anyone help me please, I would like to adjust this script so instead of relaying the message from $1- it will relay it from $2-

For instance:

<Yamaha> (Tony): won't you chat with me?

Will relay it as:

<Bot> won't you chat with me?
_________________
Idling at #Football, Quakenet.
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 -> Script Support & Releases 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