cannawen / dota-gsi-discord-bot

Use Dota 2's Game State Integration API to make helpful announcements in a discord voice channel
MIT License
5 stars 2 forks source link

[feature] create ttl for announcements #88

Open cannawen opened 1 year ago

cannawen commented 1 year ago

When a user clicks "start coaching" on the website mid game, it should not play all the queued up audio from the start of the game.

cannawen commented 1 year ago

Perhaps this should be part of a bigger refactor where the server broadcasts audio announcements for ~5 seconds and the clients consume them at a rate of 2/second or whatever the polling rate is. Would fix the current issue where the server removes audio info after exactly 1 client asks for the data ... or perhaps we can do something about sockets and streaming data to all clients instead of polling?