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

+ 2 - 2
commands.py

@@ -839,10 +839,10 @@ async def chess_moves_handler(chess, id):
     return [text]
 
 
-async def chess_anim_handler(chess, id, *args):
+async def chess_anim_handler(chess, id, count):
     count = None
 
-    if len(args) >= 1:
+    if count.strip():
         count = args[0]
 
         try: