egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IRCStats ftp upload and !trigger script?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
marvz
Halfop


Joined: 18 Jun 2010
Posts: 64

PostPosted: Tue Aug 03, 2010 4:06 pm    Post subject: IRCStats ftp upload and !trigger script? Reply with quote

I just started using IRCStats and was wondering if there was a way to get it to FTP the logs after they are created? I found this script in the archives but its for pisg.
Code:
#This is a rewrite of pisg.tcl so now when people request !stats
#If it is not the $statsnick requesting it, it will just show the url and not generate the logs
#also the $statsexe setting goes to a bash script i have made to generate and upload the logs via ftp
#to the directory that you set in generate_logs
#
#irc.bsdaxis.net #BSDAxis
#Trip-Out
set statsexe "~/generate_logs"
set statsurl "http://www.bsdaxis.net/stats"
set statschan "#BSDAxis"
set statsflags "nm"
set statstime "120"
set statsnick "Trip-Out"

bind pub $statsflags !stats pub:statsgen

proc pub:statsgen {nick host hand chan arg} {
        global statsurl statschan statsexe statsnick
        if {$nick != $statsnick} {
        putlog "$nick Requested Stats"
        append out "PRIVMSG $statschan :\002Stats Available At:\002 $statsurl"
        } else {
        putlog "Generating Stats..."
        exec $statsexe
        append out "PRIVMSG $statschan :\002Stats Updated:\002 $statsurl"
        putlog "Stats Updated."
        }
        puthelp $out
}

proc statstimer {} {
        global statsexe statsurl statschan statstime
        puthelp "PRIVMSG $statschan : \002Stats Updated:\002 $statsurl"
        timer $statstime statstimer
}

if {![info exists {statsset}]} {
  set statsset 1
  timer 2 statstimer
}

putlog "pisg-new.tcl 1.0 By Trip-Out Loaded"


this is something I'd be interested in to create new stats page by the users in the chan with the proper flags and also FTP the newly created stats page. Thanks in advance.
Back to top
View user's profile Send private message
devilsoulblack
Halfop


Joined: 19 Nov 2003
Posts: 62
Location: Chile

PostPosted: Tue Aug 10, 2010 8:38 pm    Post subject: Reply with quote

read more about http://pisg.sourceforge.net/
_________________
---------
Add [SOLVED] to the thread title if your issue has been.
Search - FAQ
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber