PDA

View Full Version : Daily Stats Message


PaRaNoiD_JaCK
12-14-2005, 06:24 PM
I have a stats script running thats scheduled just to run before the newday. The following is from ioftpd.log


12-14-2005 23:58:55 DAYSTAT: "It's the Day's top 5 Leechers:"
12-14-2005 23:58:55 DAYSTAT: "1. ******with ***G at an average speed of ***kB/s."
12-14-2005 23:58:55 DAYSTAT: "2. ****** with ***G at an average speed of ***kB/s."
12-14-2005 23:58:55 DAYSTAT: "3. ****** with ***G at an average speed of ***kB/s."
12-14-2005 23:58:55 DAYSTAT: "4. ****** with ***G at an average speed of ***kB/s."
12-14-2005 23:58:55 DAYSTAT: "5. ****** with ***G at an average speed of ***kB/s."

I`ve added this to the alcobot.vars

[Variables]
DAYSTAT = message:z

And this to the theme file:

[Theme]
# ioFTPD events.
DAYSTAT = [b][[c3]FTP-STATS[c]][b] [b][[c1]%(section)[c]][b] %(message)

At the moment it fails to announce via alcobot. What have i done wrong here ?

:)

neoxed
12-15-2005, 04:56 PM
Enable debugMode (under [General]) in AlcoBot's configuration file, reload the bot (.alcobot reload), and paste the debug information next time the DAYSTAT event is read from the log file.

PaRaNoiD_JaCK
12-15-2005, 05:11 PM
Ok thanks neoxed. Will do that now. Ok got this from the windrop log:

[23:59] [AlcoBot] Debug :: ModReadLogs - Received event: DAYSTAT (log: 0).
[23:59] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.
[23:59] [AlcoBot] Debug :: ModReadLogs - Received event: DAYSTAT (log: 0).
[23:59] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.
[23:59] [AlcoBot] Debug :: ModReadLogs - Received event: DAYSTAT (log: 0).
[23:59] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.
[23:59] [AlcoBot] Debug :: ModReadLogs - Received event: DAYSTAT (log: 0).
[23:59] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.
[23:59] [AlcoBot] Debug :: ModReadLogs - Received event: DAYSTAT (log: 0).
[23:59] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.
[23:59] [AlcoBot] Debug :: ModReadLogs - Received event: DAYSTAT (log: 0).
[23:59] [AlcoBot] Debug :: ModReadLogs - Event disabled or callback returned false, skipping announce.
[00:00] [AlcoBot] Debug :: FtpHandler - Reply code "0" and message "" (ftp3).

:)

neoxed
12-16-2005, 03:03 PM
Enable the DAYSTATS event for the channel(s) you want it to show in.

PaRaNoiD_JaCK
12-16-2005, 05:11 PM
Sorry can explain how to do that.

neoxed
12-18-2005, 02:31 PM
Read the configuration file.

#### Sections
#
# Formats:
# <channel section> = <channels> <flags>
# <path section> = <path> <channels> <flags>
#
# Examples:
# STAFF = "#Staff #Ops" "+error +sysop"
# DVDR = "/site/DVDR/" "#ChannelOne #ChannelTwo" "+all"
#
# Flags:
# all - Every flag.
# approve - Approved releases.
# autonuke - Auto-nuker announces.
# close - Open and close announces.
# credits - Credits given and taken from users.
# dir - New and deleted directories.
# error - Error.log entries.
# login - Login events.
# newdate - New date directories.
# nuke - Nuke and unnuke announces.
# pre - Pre'd releases.
# pretime - Pre time module and sets per-section time limit, in minutes.
# request - Added, deleted, and filled requests.
# sysop - SysOp.log events.
# wipe - Wiped directory and file announces.
# zipscript - Zipscript announcements.
#
# - There must be a 'DEFAULT' channel section defined, which is used for
# non-path announces (e.g. requests).
# - Both flags and events can be added or removed by using the + or -
# characters, respectively.
# - The first match wins, so order your flags accordingly.
#
[Sections]
# Channel sections.
DEFAULT = "#Alc" "+approve +close +credits +request +DAYSTAT"
STAFF = "#AlcStaff" "+error +login +sysop +wipe"

# Path sections.
0DAY = "/0DAY/" "#AlcSpam" "+COMPLETE -wipe -zipscript +pretime=60 +all"
APPS = "/APPS/" "#Alc" "-wipe +all"
DVDR = "/DVDR/" "#Alc" "-wipe +all"
GAMES = "/GAMES/" "#Alc" "-wipe +all"
MP3 = "/MP3/" "#AlcSpam" "-wipe +pretime=60 +all"
REQS = "/REQS/" "#Alc" "-wipe -pretime +all"
SVCD = "/SVCD/" "#Alc" "-wipe +all"
TV = "/TV/" "#Alc" "-wipe +all"
VCD = "/VCD/" "#Alc" "-wipe +all"
XVID = "/XVID/" "#Alc" "-wipe +all"

PaRaNoiD_JaCK
12-18-2005, 02:48 PM
Thank you neoxed

Freestyler
04-21-2006, 07:57 PM
I want to do the same. And Paranoid is missing in action. Anyone know which script I can use to write those stats to the log. I also use alcobot.

PaRaNoiD_JaCK
04-22-2006, 04:21 AM
I`m using badass`s static irc script which i had to edit slightly to change it`s output in the ioftpd log. This is what used to config it with alcobot tho.

AlcoBot.vars:

[Variables]
DAYSTAT = message:z

default-io.theme:

[Theme]
DAYSTAT = [b][[c3]FTP-STATS[c]][b] %(message)

It also can give out ranked tables of users on request via irc but I couldnt get this to work when I used a blowcrypt wrapper on the eggdrop.

:)

Freestyler
04-22-2006, 06:21 AM
anyone know where is can get that badass static script?

zOrP
05-26-2006, 11:42 AM
yup.. try his homepage..

http://mr-b.net/c0d3/
:)

zOrP
05-29-2006, 04:33 PM
and here is the addon for iojn..

the script that deletes nukes.. :)

alcobot.vars:
[Variables::Module::ReadLogs]
IOJN = message:z

alcobot.conf:
[Sections]
# Channel sections
DEFAULT = "#mychan" "approve close request pre IOJN"

default-io.theme:
[Theme::Module::ReadLogs]
IOJN = \0034-\002%(siteName)\003/AUTOWiPE\002\0034- >\003 %(message)

go for it.. :)