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.

tlc copy script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
K
Kahadrim
Voice
Posts: 4
Joined: Sun Apr 30, 2006 8:45 am

tlc copy script

Post by Kahadrim »

Hi

I am searching for a copy script for my eggdrop.

Ok i try to explain what i mean 8)

My bot joins my channel i call them channel A and a other channel i call them channel B.

In channel B there are a bot. Now i want my bot to copy the messages from this bot in channel B an post it to my channel A.

Is this possible with tlc?

Thx for help an sry for my bad english :oops:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I don't know about tlc but it sure is possible in tcl. Search the forum, these relay requests are all over the forum.
K
Kahadrim
Voice
Posts: 4
Joined: Sun Apr 30, 2006 8:45 am

Post by Kahadrim »

hi

thx for your answer. I have already used the search function but on over five sites i couldn´t find the right script.

Here are an example:

Channel B (myBot will be in this channel)

<otherBot> new Event ABCDEF

Channel A (myChannel)

<myBot> new Event ABCDEF

can someone help me?
d
darton
Op
Posts: 155
Joined: Sat Jan 21, 2006 11:03 am

Post by darton »

Code: Select all

bind pubm - "#channelB *" relay:bot

proc relay:bot {nick uhost hand chan arg} {
 if {[string equal -nocase otherbot $nick]} {
  putserv "privmsg #channelA :$arg"
 }
}
K
Kahadrim
Voice
Posts: 4
Joined: Sun Apr 30, 2006 8:45 am

Post by Kahadrim »

hi!

Thx for the script - sorry i am a tcl beginner - the vars to change are

#channelB - other Channel
#channelA - my Channel
otherbot - bots name

is this correct or anything other to change?

EDIT:

Something is going wrong with this script :cry:

Code: Select all

[10:37] Tcl error in file 'eggdrop.conf':
[10:37] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, dcc, disc, evnt, filt, link, load, nkch, note, time, unld
    while executing
"bind pubm - "#channelname *" relay:bot "
    (file "scripts/copy.tcl" line 4)
    invoked from within
"source scripts/copy.tcl"
    (file "eggdrop.conf" line 766)
[10:37] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
d
darton
Op
Posts: 155
Joined: Sat Jan 21, 2006 11:03 am

Post by darton »

bind pubm - "#channelB *" relay:bot

proc relay:bot {nick uhost hand chan arg} {
if {[string equal -nocase otherbot $nick]} {
putserv "privmsg #channelA :$arg"
}
}
You must change the red words.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Kahadrim wrote:[snip]

EDIT:

Something is going wrong with this script :cry:

Code: Select all

[10:37] Tcl error in file 'eggdrop.conf':
[10:37] bad type, should be one of: act, away, bcst, bot, chat, chjn, chof, chon, chpt, dcc, disc, evnt, filt, link, load, nkch, note, time, unld
    while executing
"bind pubm - "#channelname *" relay:bot "
    (file "scripts/copy.tcl" line 4)
    invoked from within
"source scripts/copy.tcl"
    (file "eggdrop.conf" line 766)
[10:37] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
You don't have the irc module loaded.
K
Kahadrim
Voice
Posts: 4
Joined: Sun Apr 30, 2006 8:45 am

Post by Kahadrim »

Big thx all

@Fz yea right i loaded the script before the irc module :oops:

@darton big thx works very fine

thx :)
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Kahadrim wrote:Big thx all

@Fz yea right i loaded the script before the irc module :oops:

thx :)
The scripts section at the END of the configuration file is there for a reason.
##### SCRIPTS #####



# This is a good place to load scripts to use with your bot.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Post Reply