ablakely / pepper

Eggdrop compatible TCL runtime for Shadow IRC bot in Perl
0 stars 0 forks source link

error cfg #1

Open MathiasJRL opened 1 month ago

MathiasJRL commented 1 month ago

my $dcc_port = 1024; my $cfg = $bot->getcfg();

if (exists($cfg->{Modules}->{Pepper}->{dcc}->{port})) {
    $dcc_port = $cfg->{Modules}->{Pepper}->{dcc}->{port};
}

[Core/handle_handler] eval sytanx error: Can't locate object method "getcfg" via package "Shadow::Core" at modules/Pepper/Pepper.pm line 18.

ablakely commented 1 month ago

perl version?

MathiasJRL commented 1 month ago

This is perl 5, version 38, subversion 2 (v5.38.2)

ablakely commented 1 month ago

is your install of shadow from the main branch?

try: https://github.com/ablakely/shadow/tree/tclmod

I haven't gotten around to merging into the main branch yet.

MathiasJRL commented 1 month ago

The bot is installed and working. There is no problem with that, the problem is tcl which does not link the cfg and causes problems. I hope you can fix that module which is very good.

MathiasJRL commented 1 month ago

OH , the zip is different from the git one ... i can't install zip : No such file or directory at ./installdepends.pl line 53 gives an error when you try to install . This zip is different .

ablakely commented 1 month ago

it is trying to read the modules directory at that line

download the zip again and extract its contents to a new directory and try running it from there

you can also

git clone https://github.com/ablakely/shadow
git checkout tclmod

then you'll need to install the pepper module to that