PDA

View Full Version : Problem with alcobot announce


BigBoxer
02-11-2008, 04:33 AM
Hi neoxed, thank you for the download link of previous post.

I have a problem: in the ioftpd.log there is
SFV: "/MP3" "TEST4-TEST-CDM-2008-TEST" "ioFTPD" "ioftpd" "0" "6"

and i tryed a var setup like this in a new folder (iozip) and i load in AlcoBot.conf

modules = free ftpconn ftpd ioa iozs groups help readlogs sitecmd

the variable file is modMyZip.vars

[Events]
zipscript = SFV

[Replace]

[Variables::Module::ReadLogs]
SFV = releasep:z release:z user:z group:z speed:n files:n

and i also completed the module.def file

# Module Definition File
desc=myzip Support
context=
depends=
tclFiles=
varFiles=modMyZip.vars


in this configuration i cannot get a
[04:19] [AlcoBot] Debug :: ModReadLogs - Received event: SFV (log: 0).

i tryed then to modify the existing iozs module with my variable setup but i get

[04:19] [AlcoBot] Debug :: ModReadLogs - Received event: SFV (log: 0).
[04:19] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.

can you help me or explain what i'm missing to mod?

BigBoxer
02-11-2008, 09:44 AM
OK i solved but cant get section to work

now i have
__________
modules = free ftpconn ftpd ioa iozip groups help readlogs sitecmd


________

[Events]
nopath = SFV

[Replace]

[Variables::Module::ReadLogs]
SFV = releasep:p release:z user:z group:z speed:n files:n
_____________

i modded the .theme for the SFV message but if i add nopath events group to MP3 section in Alcobot.conf it do not work, if i add it to the DEFAULT section it works.

________
if i modify the script to put a log

SFV: "/MP3/TEST4-TEST-CDM-2008-TEST" "ioFTPD" "ioftpd" "0" "6"

and

SFV = release:P user:z group:z speed:n files:n

this way alcobot set the section to MP3 (looking inside the code of AlcoBot i found that there is a "resolver" function that extract section by the path)

at this point i cant understand the difference between :p and :P

Trichlorethen
02-20-2008, 05:39 AM
thats all explained in alcobot.vars

# p - path - virtual path
# P - section path - section virtual path

if i modify the script to put a log

SFV: "/MP3/TEST4-TEST-CDM-2008-TEST" "ioFTPD" "ioftpd" "0" "6"

and

SFV = release:P user:z group:z speed:n files:n

the theme file should look some like this


[Theme::Module::ReadLogs]
SFV = [b][[c1]%(section)[c]][b] %(releasePath)[b]%(releaseName)[b] got sfv by [b]%(user)[b]/%(group) at %(speed) %(files)