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] handle multiple students connected to same discord channel #49

Closed cannawen closed 1 year ago

cannawen commented 1 year ago

GIVEN one student in a discord channel WHEN a second student connects via /coachme THEN the second student is unable to play public audio on the discord channel.

This is to prevent two audio events being played at the same time, one from each student (assuming they are connected to the same game)


GIVEN two students are connected to the same discord channel WHEN anyone types /stop in the voice channel chat THEN both students get disconnected

Handled by #47, mostly. And the fact that we delete the db on voice disconnect; really nice that it just magically works :D


GIVEN one student connected to voice channel A WHEN a different student connects to voice channel B THEN the bot switches from channel A to channel B

I think this is a limitation on the discord API. Would have to make two different bot accounts to support multiple channels in same guild (not in current scope)