Spaces:
Sleeping
Sleeping
TheYoBots commited on
Commit ·
7d8385e
1
Parent(s): 1bcfd2b
Don’t log chat
Browse filesLogging chat seems to be giving a lot of errors if someone is in spectators/players room typing commands.
- lishogi-bot.py +1 -3
lishogi-bot.py
CHANGED
|
@@ -207,9 +207,7 @@ def play_game(li, game_id, control_queue, engine_factory, user_profile, config,
|
|
| 207 |
|
| 208 |
upd = json.loads(binary_chunk.decode('utf-8')) if binary_chunk else None
|
| 209 |
u_type = upd["type"] if upd else "ping"
|
| 210 |
-
if u_type == "
|
| 211 |
-
conversation.react(ChatLine(upd), game)
|
| 212 |
-
elif u_type == "gameState":
|
| 213 |
game.state = upd
|
| 214 |
moves = upd["moves"].split()
|
| 215 |
if len(moves) > 0 and len(moves) != len(board.move_stack):
|
|
|
|
| 207 |
|
| 208 |
upd = json.loads(binary_chunk.decode('utf-8')) if binary_chunk else None
|
| 209 |
u_type = upd["type"] if upd else "ping"
|
| 210 |
+
if u_type == "gameState":
|
|
|
|
|
|
|
| 211 |
game.state = upd
|
| 212 |
moves = upd["moves"].split()
|
| 213 |
if len(moves) > 0 and len(moves) != len(board.move_stack):
|