Currently, games that do not reach the required player quorum remain indefinitely in the GameFormation state, blocking the initiation of new games in the same channel. This situation persists until all players manually leave the game, which is not always practical. To solve this, a timeout mechanism that automatically deletes a game if it fails to reach a quorum within a specified time frame should be implemented.
Expected behavior
If a game does not reach a quorum within a specified time of its initiation, it should be automatically deleted from the server.
Upon automatic deletion, the corresponding Slack message should either be deleted or updated to reflect the game's cancellation.
Once a game is deleted after the timeout, users should be able to start a new game in the same channel.
Timeout duration should be configurable with -t flag. if not specified default to 1 hour
Issue
Currently, games that do not reach the required player quorum remain indefinitely in the
GameFormation
state, blocking the initiation of new games in the same channel. This situation persists until all players manually leave the game, which is not always practical. To solve this, a timeout mechanism that automatically deletes a game if it fails to reach a quorum within a specified time frame should be implemented.Expected behavior
-t
flag. if not specified default to 1 hour