bastisawesome / guessinggame_ttv

A Twitch bot to play a word guessing game
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Wordlist From File Fails to Update Database #31

Closed bastisawesome closed 1 year ago

bastisawesome commented 1 year ago

With the current implementation of Wordlist from File there are two bugs that exist:

  1. Can cause a crash if a current round is already running, since the previous word and category may be overwritten
  2. Fails to notify the game to update the round.

I'll need to review how the code works, but I believe if a round is ended but a new wordlist has been added, the game module should automatically start a new round on startup. At the very least, the wordlist from file function needs to notify the game module to update the round.