Go Back   FlashFXP Forums > > > >

NeoXed's scripts nxAutoNuke, nxTools, etc.

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-14-2005, 06:24 PM   #1
PaRaNoiD_JaCK
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2005
Posts: 101
Default Daily Stats Message

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 ?

PaRaNoiD_JaCK is offline   Reply With Quote
Old 12-15-2005, 04:56 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

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.
neoxed is offline   Reply With Quote
Old 12-15-2005, 05:11 PM   #3
PaRaNoiD_JaCK
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2005
Posts: 101
Default

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).

PaRaNoiD_JaCK is offline   Reply With Quote
Old 12-16-2005, 03:03 PM   #4
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Enable the DAYSTATS event for the channel(s) you want it to show in.
neoxed is offline   Reply With Quote
Old 12-16-2005, 05:11 PM   #5
PaRaNoiD_JaCK
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2005
Posts: 101
Default

Sorry can explain how to do that.
PaRaNoiD_JaCK is offline   Reply With Quote
Old 12-18-2005, 02:31 PM   #6
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Read the configuration file.

Quote:
#### 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"
neoxed is offline   Reply With Quote
Old 12-18-2005, 02:48 PM   #7
PaRaNoiD_JaCK
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2005
Posts: 101
Default

Thank you neoxed
PaRaNoiD_JaCK is offline   Reply With Quote
Old 04-21-2006, 07:57 PM   #8
Freestyler
Junior Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 19
Default

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.
Freestyler is offline   Reply With Quote
Old 04-22-2006, 04:21 AM   #9
PaRaNoiD_JaCK
Senior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Mar 2005
Posts: 101
Default

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.

PaRaNoiD_JaCK is offline   Reply With Quote
Old 04-22-2006, 06:21 AM   #10
Freestyler
Junior Member
ioFTPD Registered User
 
Join Date: Nov 2003
Posts: 19
Default

anyone know where is can get that badass static script?
Freestyler is offline   Reply With Quote
Old 05-26-2006, 11:42 AM   #11
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

yup.. try his homepage..

http://mr-b.net/c0d3/
zOrP is offline   Reply With Quote
Old 05-29-2006, 04:33 PM   #12
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

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..
zOrP is offline   Reply With Quote
Reply

Tags
12-14-2005, 235855, daystat

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:12 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)