txlyre 1 day ago
parent
commit
f32bdd8f4c
1 changed files with 3 additions and 5 deletions
  1. 3 5
      commands.py

+ 3 - 5
commands.py

@@ -839,14 +839,12 @@ async def chess_moves_handler(chess, id):
     return [text]
     return [text]
 
 
 
 
-async def chess_anim_handler(chess, id, count):
+async def chess_anim_handler(chess, id, arg):
     count = None
     count = None
 
 
-    if count.strip():
-        count = args[0]
-
+    if arg.strip():
         try:
         try:
-            count = int(count)
+            count = int(arg)
 
 
             if count < 2:
             if count < 2:
                 raise ValueError
                 raise ValueError