From daedc365b52b89a21463cc01ad36cc251615840f Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Tue, 24 Sep 2024 23:59:43 +0800 Subject: [PATCH] fixed --- plugins/namerena.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/namerena.py b/plugins/namerena.py index e14d2e3..66228c1 100644 --- a/plugins/namerena.py +++ b/plugins/namerena.py @@ -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}") # 输出