This commit is contained in:
shenjack 2024-09-24 23:59:43 +08:00
parent 5883c95d82
commit daedc365b5
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -170,7 +170,7 @@ def run_fights(msg: ReciveMessage, client) -> None:
out_result = result.stdout.decode("utf-8")
err_result = result.stderr.decode("utf-8")
if out_result.strip() in names:
results.append(names.index(out_result.strip()))
results.append(f"{names.index(out_result.strip())}")
else:
results.append(f"{out_result}{err_result}")
# 输出