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 

Troubles on ChanRelay 5.0.0 by CrazyCat

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


Joined: 05 Jul 2020
Posts: 16

PostPosted: Tue Sep 20, 2022 4:33 pm    Post subject: Troubles on ChanRelay 5.0.0 by CrazyCat Reply with quote

I got some troubles configuring and launching your script, could you help me fixing it?

Code:
Tcl error in file 'eggdrop.conf':
can't read "::crelay::regg(bot)": no such element in array
    while executing
"array set me $::crelay::regg($::username)"
    (procedure "::crelay::init" line 4)
    invoked from within
"::crelay::init"
    (file "scripts/chanrelay.tcl" line 1187)
    invoked from within
"source scripts/chanrelay.tcl"
    (file "eggdrop.conf" line 79)
* CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1108
Location: France

PostPosted: Tue Sep 20, 2022 6:14 pm    Post subject: Reply with quote

Can you show us the config part of the tcl ?
It looks like you didn't set the good value in the regg() array.

Have a look and read https://gitlab.com/tcl-scripts/chanrelay/-/blob/develop-5/chanrelay.tcl#L35, show me your config part and check that username setted in your eggdrop.conf matches.
_________________
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
sauk
Voice


Joined: 05 Jul 2020
Posts: 16

PostPosted: Tue Sep 20, 2022 9:01 pm    Post subject: Reply with quote

CrazyCat wrote:
Can you show us the config part of the tcl ?
It looks like you didn't set the good value in the regg() array.

Have a look and read https://gitlab.com/tcl-scripts/chanrelay/-/blob/develop-5/chanrelay.tcl#L35, show me your config part and check that username setted in your eggdrop.conf matches.


Code:
namespace eval crelay {

   variable regg
   variable default
   variable userlist

   ### CONFIGURATION ###
   
   # debug mode : set to 1 to enable
   set debug 1
   
   # language to use : default is english, french available
   set lang english
   
   set regg(ChanLink) {
      "chan"      "#sauk"
      "network"   "Quakenet"
      "highlight" 0
      "log"       "y"
      "syn_topic" "y"
      "col_act"   "lightred"
      "col_jpq"   "lightblue"
      "col_mode"  "green"
      "usermask"   "<%nick%@%network%>"
      "clone"      1
   }

   set regg(ChanEgg) {
      "chan"      "#bouncers"
      "network"   "Dalnet"
      "highlight" 3
   }

   # You can edit values but not remove
   # or you'll break the system
   set default {
      "highlight" 1
      "snet"      "y"
      "transmit"  "y"
      "receive"   "y"
      "log"       "n"
      "syn_topic" "n"
      "col_act"   "purple"
      "col_jpq"   "cyan"
      "col_mode"  "green"
      "usermask"   "(%nick%@%network%)"
      "clone"      0
   }

   # Fill this list with the nick of the users
   # who WON'T BE relayed, as services bot
   variable users_excluded {\[Guru\] Pan}

   # Fill this list with the nick of the users
   # wich will be THE ONLY ONES to be relayed
   variable users_only {}

   # Set the banmask to use in banning the IPs 
   # Default banmask is set to 1
   # 1 - *!*@some.domain.com
   # 2 - *!*@*.domain.com
   # 3 - *!*ident@some.domain.com
   # 4 - *!*ident@*.domain.com
   # 5 - *!*ident*@some.domain.com
   # 6 - *nick*!*@*.domain.com
   # 7 - *nick*!*@some.domain.com
   # 8 - nick!ident@some.domain.com
   # 9 - nick!ident@*.host.com
   set bantype 1
   
   # Path and name of the config file
   # %b will be replaced with the botnick
   variable config "%b.chanrelay.db"
   
   # Path and name of the logfile (used for debug)
   variable logfile "chanrelay.log"

   # max length of a message
   variable msglen 350
   
   # transmission configuration
   set trans_pub "y"; # transmit the pub
   set trans_act "y"; # transmit the actions (/me)
   set trans_nick "y"; # transmit the nick changement
   set trans_join "y"; # transmit the join
   set trans_part "y"; # transmit the part
   set trans_quit "y"; # transmit the quit
   set trans_topic "y"; # transmit the topic changements
   set trans_kick "y"; # transmit the kicks
   set trans_mode "y"; #transmit the mode changements
   set trans_who "y"; # transmit the who list

   # reception configuration
   set recv_pub "y"; # recept the pub
   set recv_act "y"; # recept the actions (/me)
   set recv_nick "y"; # recept the nick changement
   set recv_join "y"; # recept the join
   set recv_part "y"; # recept the part
   set recv_quit "y"; # recept the quit
   set recv_topic "y"; # recept the topic changements
   set recv_kick "y"; # recept the kicks
   set recv_mode "y"; # recept the mode changements
   set recv_who "y"; # recept the who list
}
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1108
Location: France

PostPosted: Wed Sep 21, 2022 1:53 am    Post subject: Reply with quote

So your trouble might be in your eggdrop.conf: https://github.com/eggheads/eggdrop/blob/9497a51b658af4c33077d19b36139ea06dff71b1/eggdrop.conf#L25

Check that you set this variable to ChanLink and to ChanEgg in their respective configuration file.
_________________
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
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