hi i want to automatically start a mircstats updater like
./pisg.pl when someone types !update
f.e. i am in channel #sixts
now when someone types !update, i want
the scripts to start ./pisg.pl which makes IRC stats and then it has to display in channel #sixth:
mIRC stats updated at http://www.somethingi.cantfigure.out.com
# Set the flag required to use the !update command here.
set update_setting(flag) "m|m"
# Set the path of the file to execute here.
set update_setting(exec) "./pisg.pl"
# Set the url of your stats page here.
set update_setting(msg) "mIRC stats updated at http://www.somethingi.cantfigure.out.com"
# Set the update command here.
set update_setting(cmd) "!update"
bind pub $update_setting(flag) $update_setting(cmd) pub:update
proc pub:update {nick uhost hand chan text} {
global update_setting
puthelp "PRIVMSG $chan :[expr {[catch {exec $update_setting(exec)} error]?"$update_setting(exec) could not be executed ([string totitle $error]).":$update_setting(msg)}]"
}