From 51624483cb23e8922cbdf5f529e1dcb2342333a7 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sun, 21 Feb 2021 00:12:44 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/plugins/code-runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ATRI/plugins/code-runner.py b/ATRI/plugins/code-runner.py index ef39afe..f31f049 100644 --- a/ATRI/plugins/code-runner.py +++ b/ATRI/plugins/code-runner.py @@ -49,7 +49,8 @@ async def _code_runner(bot: Bot, event: MessageEvent) -> None: if laug not in SUPPORTED_LANGUAGES: await code_runner.finish("该语言暂不支持...") - code = msg[1] + del msg[0] + code = "\n".join(map(str, msg)) try: req = await post_bytes( RUN_API_URL_FORMAT.format(laug), -- cgit v1.2.3