From 6481c9774eb95fe7d297e8b64f5fb909955cb5bc Mon Sep 17 00:00:00 2001 From: Cathgao <21031564+Cathgao@users.noreply.github.com> Date: Fri, 17 Nov 2023 19:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcmd=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E4=B9=8B=E5=90=8E=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20(#488)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/bot_manager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittlePaimon/plugins/bot_manager/__init__.py b/LittlePaimon/plugins/bot_manager/__init__.py index 900f439..b76293a 100644 --- a/LittlePaimon/plugins/bot_manager/__init__.py +++ b/LittlePaimon/plugins/bot_manager/__init__.py @@ -166,7 +166,7 @@ async def _(event: MessageEvent, cmd: str = ArgPlainText('cmd')): try: result = (stdout or stderr).decode('utf-8') except Exception: - result = str(stdout or stderr) + result = (stdout or stderr).decode('gbk') await run_cmd.finish(f'{cmd}\n运行结果:\n{result}')