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 

linking channels

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Sat Jun 21, 2014 7:04 pm    Post subject: linking channels Reply with quote

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


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Sat Jun 21, 2014 9:01 pm    Post subject: Reply with quote

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
.
Back to top
View user's profile Send private message Visit poster's website
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Sun Jun 22, 2014 12:28 am    Post subject: Reply with quote

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

my setup is like this one

Code:
# 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:

[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



i think they using clink.tcl but i couldnt figure it out how can i modified it so it can be work for me .
Back to top
View user's profile Send private message
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Sun Jun 22, 2014 12:27 pm    Post subject: Reply with quote

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:


#################################################
# 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.
Back to top
View user's profile Send private message
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Mon Jun 23, 2014 3:49 am    Post subject: Reply with quote

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


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Mon Jun 23, 2014 9:47 am    Post subject: Reply with quote

You can have a look on http://scripts.eggdrop.fr/details-ChanRelay-s1.html , it allows having different channel names.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Mon Jun 23, 2014 10:53 am    Post subject: Reply with quote

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:


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


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Mon Jun 23, 2014 6:03 pm    Post subject: Reply with quote

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.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Tue Jun 24, 2014 9:37 pm    Post subject: Reply with quote

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:


# 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"
    }

Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Thu Jun 26, 2014 4:27 am    Post subject: Reply with quote

Seems to be ok (if you remove the BBCode Smile)
Tell me if you have any error, and PM me your config block whitout any modification (sometime, a small character could be the bug)
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Thu Jul 03, 2014 12:37 pm    Post subject: Reply with quote

still not working .
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Thu Jul 03, 2014 6:22 pm    Post subject: Reply with quote

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 ?
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Mon Jul 07, 2014 11:51 am    Post subject: Reply with quote

So, give me your config block.

what do you mean by that ?

And is there any error in party-line ?


Quote:
[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 .
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 -> Scripting Help 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