I'm running stats that should reset at midnight. Currently need to disconnect and connect for this to happen. Problem with that is that it resets if my PC goes off unexpectedly also. Is there away to use only timers to run the reset? My script:
ON *:DISCONNECT: {
echo -a Disconnected from $network to reset daily stats
statsave
/timerstart -o 00:00 1 20 /server
}
ON *:CONNECT: {
statload
if (%stats_module == $null) set %stats_module on
dailystatsflush
echo -a Connected to $network daily stats
}
ALIAS dailystatsflush {
todaystatclear
msg #ops today's stats will be cleared when the bot resets
/timerstop -o 23:59 1 60 DISCONNECT
}