txlyre 2 月之前
父节点
当前提交
57edc2bff5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      commands.py

+ 1 - 1
commands.py

@@ -972,7 +972,7 @@ async def chess_handler(bot, event, command):
         else:
             await event.reply(reply)
 
-    if name in ("move", "skip", "undo", "pass") and peer_id in bot.chess.sessions and chess.game_over(peer_id) is None:
+    if name in ("move", "skip", "undo", "pass") and peer_id in bot.chess.sessions and bot.chess.game_over(peer_id) is None:
         await event.reply(f"Ход {'белых' if bot.chess.turn(peer_id) else 'чёрных'}.")