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 

tlc copy script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Kahadrim
Voice


Joined: 30 Apr 2006
Posts: 4

PostPosted: Sun Apr 30, 2006 8:51 am    Post subject: tlc copy script Reply with quote

Hi

I am searching for a copy script for my eggdrop.

Ok i try to explain what i mean Cool

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 Embarassed
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 30, 2006 9:32 am    Post subject: Reply with quote

I don't know about tlc but it sure is possible in tcl. Search the forum, these relay requests are all over the forum.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Kahadrim
Voice


Joined: 30 Apr 2006
Posts: 4

PostPosted: Sun Apr 30, 2006 9:46 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Sun Apr 30, 2006 10:54 am    Post subject: Reply with quote

Code:
bind pubm - "#channelB *" relay:bot

proc relay:bot {nick uhost hand chan arg} {
 if {[string equal -nocase otherbot $nick]} {
  putserv "privmsg #channelA :$arg"
 }
}
Back to top
View user's profile Send private message
Kahadrim
Voice


Joined: 30 Apr 2006
Posts: 4

PostPosted: Sun Apr 30, 2006 11:12 am    Post subject: Reply with quote

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 Crying or Very sad

Code:

[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)
Back to top
View user's profile Send private message
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Sun Apr 30, 2006 1:10 pm    Post subject: Reply with quote

Quote:
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.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Apr 30, 2006 1:22 pm    Post subject: Reply with quote

Kahadrim wrote:
[snip]

EDIT:

Something is going wrong with this script Crying or Very sad

Code:

[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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Kahadrim
Voice


Joined: 30 Apr 2006
Posts: 4

PostPosted: Sun Apr 30, 2006 1:55 pm    Post subject: Reply with quote

Big thx all

@Fz yea right i loaded the script before the irc module Embarassed

@darton big thx works very fine

thx Smile
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon May 01, 2006 7:51 pm    Post subject: Reply with quote

Kahadrim wrote:
Big thx all

@Fz yea right i loaded the script before the irc module Embarassed

thx Smile

The scripts section at the END of the configuration file is there for a reason.

Quote:
##### 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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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