txlyre 2 月之前
父節點
當前提交
edea2104f2
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      commands.py

+ 3 - 0
commands.py

@@ -712,6 +712,9 @@ async def chess_from_handler(chess, id, moves):
     if chess.is_check(id):
         reply.append("Шах!")
 
+    if isinstance(id, str):
+        reply.append(f"Ход {'белых' if chess.turn(id) else 'чёрных'}.")
+
     return reply