rileyshahar / botcbot

A WIP bot for playing Blood on the Clocktower on Discord. Version 2.
3 stars 1 forks source link

Generating the seating info message may fail in edge cases during startgame #15

Open rileyshahar opened 4 years ago

rileyshahar commented 4 years ago

This was caught by mypy -- in general, generate_game_info_message expects game to exist (because it needs to iterate over game.seating_order. I haven't found a case where this causes an error, but I suspect it must do so in some cases. Probably there needs to be a separate function for generating the message during startgame vs during games.

rileyshahar commented 4 years ago

An example case where this might fail is Voudon, depending on how it ends up being implemented.