Code: Select all
[14:22] Generating Stats...
[14:22] Tcl error [pub:statsgen]: couldn't execute "/home/marvz/stats/generate_logs": no such file or directory
Code: Select all
#!/usr/local/bin/bash
#
#Your PISG executable location
PISG_DIR="/home/marvz/pisg-0.72/pisg"
#FTP Hostname
FTP_HOST="ftp.aaron5k.com"
#FTP Username
FTP_USER="****"
#FTP Password
FTP_PASS="********"
#Directory to upload your html file too
FTP_DIR="/publichtml/irc4lyf/statz/"
#HTML File name. I suggest you don't touch this if
#your putting it in it's own directory.
INDEX_FILE="index.html"
#DO NO EDIT BELOW HERE
$PISG_DIR psig.cfg
ftp -Vu ftp://$FTP_USER:$FTP_PASS@$FTP_HOST/$FTP_DIR $INDEX_FILE
Code: Select all
#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 "/home/marvz/stats/generate_logs"
set statsurl "http://www.irc4lyf.com/statz"
set statschan "#spf"
set statsflags "nmof"
set statstime "720"
set statsnick "marvz"
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"