Loading information into variables

Is it possible to set the result of the !uptime command into a nightbot variable?

Something like…

!addcom !settime $(1)
!settime !uptime

I’m trying to load the !uptime result into a variable and send the infomation to an api using $(customapi)

It is not possible to story arbitrary data inside of Nightbot variables, sorry. The only available option to storing anything is shown here: Make Nightbot count without $(count)

Thanks for the reply!

I solved my mini project with a php file_get_contents() to get the uptime from nightdev instead

Streamer wanted to store current uptime to a database everytime she executed !save; useful for reviewing recorded stream.

This topic was automatically closed after 14 days. New replies are no longer allowed.