Code: Select all
} else {
putlog "Generating Stats..."
catch { exec $statsexe } error
if {$error == ""} {
append out "PRIVMSG $statschan :\002Stats Updated:\002 $statsurl"
putlog "Stats Updated."
} else {
set out "PRIVMSG $statschan :$error"
}
}
Code: Select all
set statsexe "./scripts/generate_logs"
something windrop cannot do like an actual eggdrop. It's already been discussed in this topic and this one.#!/usr/local/bin/bash
#
#Your PISG executable location
PISG_DIR="/home/trip/pisg-0.67/pisg"
...
#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 "d:/server/eggdrop/pisg/pisg.bat"
set statsurl "http://******.org/stats/"
set statschan "#******"
set statsflags "nm"
set statstime "120"
set statsnick "StatsBot"
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"
Code: Select all
[07:18:33] <StatsBot [07:18] Tcl error [pub:statsgen]: couldn't create error file for command: no such file or directory