txlyre 2 mesiacov pred
rodič
commit
edea2104f2
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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