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}')