Closed cannawen closed 1 year ago
Slight bug, hopefully no one will run into:
Expected: bot auto-connects Actual: bot does not auto-connect
This is probably because some state is stale. wontfix: I don't think it's going to be a common use case; we can add some documentation to the instructions that you should do a /coachme after changing your /autoconnect settings
Weird UX where private coaching needs to be started AFTER the bot joins the discord.
If you start private coaching from the website, the guild and channel id variables get set to null and the bot does not auto-connect ... re-opening
Now if there is already a default guild set, doing a /coachme will not reset the default guild. Need to manually change the default guild by doing a slash command
GIVEN A student has done a /coachme in a guild before, set their last known guild as their "default guild"
WHEN The student starts a dota game AND The student is in a voice channel in their default discord guild AND A coaching session has not been started yet
THEN The bot should auto-connect to the channel and start coaching without any user interaction
Caveat: How to handle if two students are in the same channel? --> race condition; whoever sends the first GSI event will be in control of the "public" audio settings
A student can turn autoconnect on or off using the
/autoconnect True
or/autoconnect False
commands (default to on)