Hello,
I'm trying to add a countdown timer till the next Pkmn spawn which is every 15mins)
URL: https://poketwitch.bframework.de/info/events/last_spawn/
example of JSON output: {"next_spawn": 597, "pokedex_id": 703, "event_time": "2022-07-22T17:19:32.960Z"}
Here so far, I can URLfetch and eval the last event time using !editcom test $(eval top=$(urlfetch json https://poketwitch.bframework.de/info/events/last_spawn/).event_time)
returns
test
nightbot: 2022-07-22T18:49:33.323Z
Now, I want to add 15mins to this timer and countdown from for the next spawn.
any help?