Decide whether to automate Voice Chat channel naming ahead of matches #80
Labels
could
MoSCoW - this COULD be implemented
design-decision
A non-trivial design decision needs to be made
feature
New feature, functionality or request
functional
Functional (i.e. user-visible) work
Description of Problem:
When a match is upcoming, it would be ideal if the bot renamed an available Voice Chat (VC) channel for that match, so that the admins don't have to manage this manually.
When that match is over, it would be ideal if the bot were to rename the VC channel back to something generic (e.g.
unused-1
), so that the admins (and the bot, perhaps) can quickly determine which VC channels are in use vs those that aren't.Complications
Determining a descriptive but short name for the VC channel may be difficult to automate. It may be that we need a map of full-team-name to abbreviated name will be necessary (e.g. "Manchester United" -> "ManU", "Sheffield United F.C." -> "Sheffield"), so that the VC chat can be called something like "ManU vs Sheffield". Given the massive number of team names worldwide, a fallback mechanism that attempts to reasonably shorten team names will also be needed (e.g. take the first word of the name? Take first letter of each word in the name? Take N characters from the name? Take at least N letters, then stop at the next word break or at M letters if no word break is reached?).
There are many instances where there are more matches running concurrently than there are VC channels, so the bot would need some rule in order to determine which ones are the most important to assign to the (limited) VC channels.
Determining when a match is over (in order to rename it back to something generic) is quite tricky - either the football-data.org match API would need to be polled (which raises the risk of quota violations), or a hardcoded time limit on matches (e.g. 2.5 hours) would need to be chosen.
The text was updated successfully, but these errors were encountered: