문제

I'm currently doing a Twitch chat bot using mIRC. Is there a way to check the time left for an assigned variable? That is, how long time it's left until it's removed.

Example:

I have a variable that is set to exist for 120 seconds (set -u120 %myvar itsvalue).
Is there a way to check how much time there's left on that time? So for example if it's 30 seconds left you could return that value somehow and assign it to another variable.

도움이 되었습니까?

해결책

$var(%myvar, 1).secs will return the number of seconds left until it's unset by the u switch. If the variable is not found, it will return $null.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top