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

[bug] unable to transfer bot if multiple people autoconnect to the same channel #136

Open cannawen opened 10 months ago

cannawen commented 10 months ago

Scenario

  1. User A and User B both have the bot autoconnecting to the same guild; they both join the same voice channel and dota game together
  2. There is a race condition to who owns the bot (which is "fine") ... let's say User A owns the bot's public audio
  3. The game finishes and User A is done playing dota so they leave the voice channel but User B wants to keep playing with the same stack
  4. Currently there is no easy way to transfer ownership from User A to User B.

Workaround: Have EVERYBODY leave the voice channel so the bot auto-disconnects and then have everyone join again to start from scratch so the bot auto-joins for User B