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.

linking channels

Help for those learning Tcl or writing their own scripts.
Post Reply
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

linking channels

Post by Votex »

Hello there , eggdrop users , ..

im looking for help on finding and editing a script that actual work to link 2 bots together so they can relay messages from two different channels on two different networks.

im trying to link a channel on P2P-Net and the other one on Rizon
i couldnt find how can i do that.
could someone please help me with that ??
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

Please try these examples first...

http://www.egghelp.org/tclhtml/34-4-0-0-1-relay.htm
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

i did downloaded the relay.tcl script
and i set it up like this

my setup is like this one

Code: Select all

# List of channels to relay between (lower case only!)
set channelList "#(P2P-Channel) #(Rizon Channel)"

# This identifies the server information of the two networks you wish to
#  relay to each other.  There are three entries in each and they are as
#  follows:
#  0 - A unique pattern in each of the servers you use on a particular 
#      network.  (ex. all SorceryNet servers contain the word "sorcery"
#      in them, but none of the DALnet servers use this.)
#  1 - The name of the network as you'd like it to appear on the *other*
#      network (ex. <Dal-Bot> [SorceryNet] <Nickname> hi there everyone on
#      DALnet :))
#  2 - The name of the bot which sits on the *other* network.  (The bot you
#      want the informaiton sent *to*)
set server1List "P2P P2P-NET (RizonBot)"
set server2List "Rizon Rizon (P2PBot)"

but when i type on the other network i got this

Code: Select all

[06:24:35] Tcl error [send_pubm]: bot is not on the botnet
[06:24:35] clink.tcl: Warning: bot CypeTech not linked.

UPDATE



I made it works ...
but the problem now is that each both bots works only on the same channel on two different network

ex . my channel on P2P-NET is " CyperTech " and on rizon is " Netpad "
Note: both channels for example only .

both bots only works with CyperTech channel from p2p and rizon ,
how can i make it for people on cypertech get their messages appears on netpad channel on Rizon , and the same thing for users on netpad get this meesages appear on cypertech on p2p

i want something like this one

Image

i think they using clink.tcl but i couldnt figure it out how can i modified it so it can be work for me .
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

i tried with clink.tcl but i got no luck in getting works for my bots.
could someone help me

i put the settings like this
on both rizon , and p2p-network

Code: Select all


#################################################
# Configuration
#################################################
#
# Note: I was relaying #clink.qc(Quebec-Chat) #clink.io(Ionical) and
# #clink.un(Undernet) all together (those 3 eggdrops where using the
# same .tcl source).
#
# CLink-QC on Quebec-Chat, CLink-IO on Ionical and CLink-UN on Undernet.
#
# Nickname (botnet-nick) of the bots who are involved in the relaying.
# Enter all of them, case-sensitive.
#
set clink_botnicks {"Siri^" "CyperTech"}
#
# The channel(s) you want to relay messages from and the bot that is on.
#
# You need to "set network 'Network-Name'" in your bot(s) .conf file.
# If you don't want to waste time searching what you put there, simply
# .rehash your bot with clink.tcl loaded and you should see something like:
#
# clink.tcl: I am CLink-UN running on Undernet.
# --- Network-Name -------------------^^^^^^^^
# Loaded clink.tcl: {SImPhAt} Channel Linker v1.x
#
# Case-sensitive.
#
# Syntax: set clink_onchan(#chan@network) "bot-name"
set clink_onchan(#eqla3@P2P-Net) "Siri^"
set clink_onchan(#satorrent@Rizon) "CyperTech"
#set clink_onchan(#clink.qc@Quebec-Chat) "CLink-QC"
#
# The channel(s) where you want the messages to be relayed.
#
# For each channels you need to tell where you want everything
# to be sent to.
#
# Case-sensitive.
#
# Syntax: set clink_relayto(#from_chan@network1) {"#destination_chan@network2"}
set clink_relayto(#cyper@P2P-Net) {"#netpad@Rizon"}
set clink_relayto(#netpadt@Rizon) {"#cyper@P2P-Net"}
#set clink_relayto(#clink.qc@Quebec-Chat) {"#clink.io@Ionical" "#clink.un@Undernet"}
#
# Should we add colors to join, part, nick, quit,
# action, etc.
#
set clink_usecolor 1
#
# Do you want me to display the network name?
#
set clink_relaynet 1
#
# Characters to use when displaying the nicknames in channels msgs.
#
# Exemples:
# <Nickname> hello
# set clink_charmsgs {"<" ">"}
#
# (Nickname) hello
set clink_charmsgs {"(" ")"}
#


could some guide me through this settings so i can make it work , thank you.
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

Please if someone know how can i make it work, please help me with it ,
i tried and tried over and over , but i couldnt make it work.
if you can help me please guide me through it .


I edited everything in clink.tcl
and when i type on the channel i got this message in my telnet window .

[11:11:54] clink.tcl: Warning: unknown action type "pubm" for #RizonChannel.
[11:11:55] clink.tcl: Warning: unknown action type "pubm" for #RizonChannel.
[11:11:55] clink.tcl: Warning: unknown action type "pubm" for #RizonChannel.
User avatar
CrazyCat
Revered One
Posts: 1334
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

You can have a look on http://scripts.eggdrop.fr/details-ChanRelay-s1.html , it allows having different channel names.
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

CrazyCat wrote:You can have a look on http://scripts.eggdrop.fr/details-ChanRelay-s1.html , it allows having different channel names.
i did edite the script , but i couldnt make it work

i got this when i tried it .

Code: Select all


 Tcl error in file 'eggdrop.conf':
[16:05:53] unknown or ambiguous subcommand "#eggdrop.fr": must be blocked, close, configure, copy, create, eof, event, flush, gets, names, pending, postevent, puts, read, seek, tell, or truncate
    while executing
""chan"		"#eggdrop.fr""
    (in namespace eval "::crelay" script line 23)
    invoked from within
"namespace eval crelay {
    
    variable regg
    variable default
    variable userlist
	
    set regg(Siri^) {
        "chan"		"#eqla3"
        "ne..."
    (file "scripts/chanrelay3.t
[16:05:53] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
[03] [0] OK Disconnected



Last edited by Votex on Tue Jun 24, 2014 5:12 am, edited 2 times in total.
User avatar
CrazyCat
Revered One
Posts: 1334
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

I think it didn't like the "^" in Siri^.
Peharps a bug I'll have to correct, I did this script whithout thinking about botnicks with special characters.
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

CrazyCat wrote:I think it didn't like the "^" in Siri^.
Peharps a bug I'll have to correct, I did this script whithout thinking about botnicks with special characters.
so my editing is correct ?
i edited it like this

Code: Select all


# Syntax:
# set regg(USERNAME) {
#	"chan"		"#CHANNEL"
#	"network"	"NETWORK"
#}
# with:
# USERNAME : The username sets in eggdrop.conf (case-sensitive)
# optionaly, you can override default values:
# * highlight (0/1/2/3): is speaker highlighted ? (no/bold/undelined/gray)
# * snet (y/n): is speaker'network shown ?
# * transmit (y/n): does eggdrop transmit his channel activity ?
# * receive (y/n): does eggdrop diffuse other channels activity ?
# * oper (y/n): does the eggdrop accept @ commands (topic, kick, ban) ?
#
# userlist(beg) is the sentence announcing the start of !who
# userlist(end) is the sentence announcing the end of !who

namespace eval crelay {
    
    variable regg
    variable default
    variable userlist
	
    set regg([color=red]BOTNAME[/color]) {
        "chan"		"[color=red]#P2P-NET CHAN[/color]"
        "network"	"P2P-NET"
        "highlight"	0
        "log"		"y"
        "oper"      "y"
    }
    
    set regg([color=red]BOTNAME[/color]) {
        "chan"		"[color=red]#RizonCHAN[/color]"
        "network"	"Rizon"
        "highlight"	3
        "oper"      "y"
    }
    
    

    set default {
        "highlight"	1
        "snet"		"y"
        "transmit"	"y"
        "receive"	"y"
        "log"		"n"
        "oper"      "n"
    }

User avatar
CrazyCat
Revered One
Posts: 1334
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Seems to be ok (if you remove the BBCode :))
Tell me if you have any error, and PM me your config block whitout any modification (sometime, a small character could be the bug)
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

still not working .
User avatar
CrazyCat
Revered One
Posts: 1334
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

So, give me your config block.
And is there any error in party-line ?
Is the script loaded in the two bots ? Are they well linked ?
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

So, give me your config block.

what do you mean by that ?

And is there any error in party-line ?

[16:05:53] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Is the script loaded in the two bots ? Are they well linked ?

Yeah on both of me , and Yes they are linked together .
Post Reply