Code: Select all
cd eggdrop1.6.17/src/mod/stats.mod/language
cp * ~/yourbotdirectory/language
Installation:
-------------
Stats.mod will work with eggdrop1.6.x and eggdrop1.4.x.
The following instructions assume, ~/eggdrop1.6/ is the directory
where you installed your eggdrop from. (of course, other source dirs
will work as well)
Unfortunately, you need to compile stats.mod within your eggdrop source,
so if you removed your original compile directory, you'll have to
compile the whole bot again... sorry.
Put stats.mod.1.3.2.tar.gz in ~/eggdrop1.6/src/mod/,
and unpack it (tar xfz stats.mod.1.3.2.tar.gz). Change directory
back to ~/eggdrop1.6/. Type 'make config' (on eggdrop 1.4, you can skip
that part) Type 'make', wait until compiling
is done and use 'make install' to install the bot and stats.mod.
Don't forget to copy the language files from ~/eggdrop1.6/src/mod/stats.mod/ to
~/eggdrop/language/ !
All settings can be found in ~/eggdrop1.6/src/mod/stats.mod/stats.conf
I suggest to copy it to your eggdrop directory (probably ~/eggdrop/),
edit it to fit your needs and put a 'source stats.conf' at the end of
your eggdrop config file. This will execute the config file with every
restart or rehash.
uh-huhXpro wrote:used pico to edit it and i precompiled it and installed it on an other linuxbox (stats.mod works fine there)
after that i uploaded it to my shellserver (i cant compile it there, C is missing)
can this be the problem?
Code: Select all
...
loadmodule stats
######### TCLS #########
set error ""
foreach script {
stats.conf
} {
catch {source scripts/$script} error
if {$error != ""} {putcmdlog "\002SCRIPT ERROR\002:$script\: $::errorInfo"}
}
....
Code: Select all
# reset old slangs before we load the new ones...
resetslang
# load the default language
loadslang language/stats.lang
## load additional languages
loadslang pt-br language/stats.pt-br.lang
#
## assign a language to a channel
setchanslang #channel pt-br
Code: Select all
[23:32:52] <CoolStatsBeta> Rehashing.
[23:32:52] <CoolStatsBeta> [23:32] Rehashing ...
[23:32:52] <CoolStatsBeta> [23:32] * IDENTITY CHANGE: unixfire1 -> CoolStats
[23:32:52] <CoolStatsBeta> [23:32] Listening at telnet port 5101 (bots).
[23:32:52] <CoolStatsBeta> [23:32] Listening at telnet port 5101 (users).
[23:32:52] <CoolStatsBeta> [23:32] Listening at telnet port 5101 (all).
[23:32:52] <CoolStatsBeta> [23:32] * IDENTITY CHANGE: CoolStats -> xxxxx
[23:32:52] <CoolStatsBeta> [23:32] Loading default slangfile: language/stats.lang
[23:32:52] <CoolStatsBeta> [23:32] Loading slangfile for pt-br: language/stats.pt-br.lang
[23:32:52] <CoolStatsBeta> [23:32] SCRIPT ERROR:stats.conf: errorInfo.txt
[23:32:52] <CoolStatsBeta> [23:32] Userfile loaded, unpacking...
Code: Select all
catch {source scripts/$script} error
if {$error != ""} {putcmdlog "\002SCRIPT ERROR\002:$script\: $::errorInfo"}
}
Code: Select all
if {[catch {source scripts/$script} error]} {
putcmdlog "\002SCRIPT ERROR\002:$script\: $error"}
}