ffao / Shiro

Helper bot for games in puzzling.stackexchange.com chat
MIT License
5 stars 6 forks source link

An attempted fix to issue #18 #21

Open Tumbler opened 7 years ago

Tumbler commented 7 years ago

Added a three second sleep to pin_red and pin_blue as discussed in Issue #18

boboquack commented 7 years ago

I'm just wondering whether on_message works for each message and can run concurrently with another instance of itself. If so, the same problem would occur, because the two teams messages would be pinned the same distance apart anyway, just 3 seconds later. A fix, in this case, might be to have one team pinned immediately but the other team pinned, for example, 5 seconds later, but this is also risky because at the start of the game many new teams and team editions can be posted in short succession.