| View previous topic :: View next topic |
| Author |
Message |
Kahadrim Voice
Joined: 30 Apr 2006 Posts: 4
|
Posted: Sun Apr 30, 2006 8:51 am Post subject: tlc copy script |
|
|
Hi
I am searching for a copy script for my eggdrop.
Ok i try to explain what i mean
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  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Apr 30, 2006 9:32 am Post subject: |
|
|
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 |
|
 |
Kahadrim Voice
Joined: 30 Apr 2006 Posts: 4
|
Posted: Sun Apr 30, 2006 9:46 am Post subject: |
|
|
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 |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Sun Apr 30, 2006 10:54 am Post subject: |
|
|
| 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 |
|
 |
Kahadrim Voice
Joined: 30 Apr 2006 Posts: 4
|
Posted: Sun Apr 30, 2006 11:12 am Post subject: |
|
|
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
| 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 |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Sun Apr 30, 2006 1:10 pm Post subject: |
|
|
| 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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Apr 30, 2006 1:22 pm Post subject: |
|
|
| Kahadrim wrote: | [snip]
EDIT:
Something is going wrong with this script
| 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 |
|
 |
Kahadrim Voice
Joined: 30 Apr 2006 Posts: 4
|
Posted: Sun Apr 30, 2006 1:55 pm Post subject: |
|
|
Big thx all
@Fz yea right i loaded the script before the irc module
@darton big thx works very fine
thx  |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon May 01, 2006 7:51 pm Post subject: |
|
|
| Kahadrim wrote: | Big thx all
@Fz yea right i loaded the script before the irc module
thx  |
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 |
|
 |
|