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