Uptime modifiers?


#1

PhantomBot Version: v2.4.0.3
OS Version: Windows 10
Java Version: Version 8 Update 131
Browser and Version (for Panel Support): Chrome Version 65.0.3325.181 (Official Build) (64-bit)
Stock PhantomBot: Yes/No (Yes if you have not modified the scripts or Java Core)

Let us know what help you need: I am trying to make a command that displays (uptime) + a constant value for a long stream that had to restart midway through. Is there a way to get it to display the uptime+9hours7minutes? currently working the bot from twitch chat as a mod for someone else’s channel.


#2

Unfortunately there’s no way to do this, the uptime is gotten from Twitch in a ISO time string, then we convert it to our own hours, minutes, and seconds string. The only way to do this would be to edit the code and add 9 hours to the ISO string (converting it to epoch then adding 9 hours).


#3

ahhh okay, thanks for the explanation! Much appreciated!


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.