diff options
author | Kyomotoi <[email protected]> | 2021-02-21 00:12:44 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-21 00:12:44 +0800 |
commit | 51624483cb23e8922cbdf5f529e1dcb2342333a7 (patch) | |
tree | 15f7d86934544f2841f480dd4503f2a08e65ad91 | |
parent | ae7ea2d379ec7fb0edb8e333145bb141106a2fd2 (diff) | |
download | ATRI-51624483cb23e8922cbdf5f529e1dcb2342333a7.tar.gz ATRI-51624483cb23e8922cbdf5f529e1dcb2342333a7.tar.bz2 ATRI-51624483cb23e8922cbdf5f529e1dcb2342333a7.zip |
🐛 修复上报代码格式问题
-rw-r--r-- | ATRI/plugins/code-runner.py | 3 |
1 files changed, 2 insertions, 1 deletions
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), |