PokeBotA web interface for inspecting currently playing audio in PokeBot. Select an instance of the bot to view it's playlist and history. |
||||||||
Status
{% match bot.currently_playing %}
{% when Some with (current) %}
Currently playing: {{ current.title }} {{ bot.position|fmt_duration }} / {{ current.duration|fmt_duration }} {% match current.duration %} {% when Some with (duration) %} {% let position %} {% match bot.position %} {% when Some with (pos) %} {% let position = pos.as_secs_f64() %} {% when None %} {% let position = 0.0 %} {% endmatch %} {% let progress = position / duration.as_secs_f64() %} {% let percent = progress * 100.0 %} {% when None %} {% endmatch %} {% when None %} {% endmatch %} |
||||||||
Playlist
|
||||||||