So, I'm planning on doing a 24 hour stream on twitch. And having the !uptime command helps people know how much longer is left and all that good stuff. Basically, I want to take a break every couple hours and want to be able to pause the uptime command. Is this a possibility? here's my uptime script:
on *:text:!startup:#: {
unset %downtime
set -e %uptimer. [ $+ [ # ] ] $ctime
}
on *:text:!stopup:#: {
set %downtime On
unset %uptimer. [ $+ [ # ] ]
}
on *:text:!uptime:#: {
if (%downtime) {
msg # Currently Offline
}
else { msg # Proper has been live for: $duration($calc($ctime - %uptimer. [ $+ [ # ] ] )) }
}
Basically what I want is like a !pauseup command that will store the current "uptime" which I'm assuming would have to include making a variable to store the current uptime, unsetting %uptimer. and then when unpausing, starting a new "%uptimer." variable that uses $calc to include the new %uptimer. and the variable that has the old one stored...
ie: $duration($calc($ctime - %uptimernew. [ $+ [ # ] ] ))
However, the things I've tried haven't worked. Any help is appreciated...