diff options
author | 0w0 <[email protected]> | 2023-06-15 14:19:32 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2023-06-15 14:19:32 +0800 |
commit | 103f3c01d1a3568686a79208c3712b9d82e26c31 (patch) | |
tree | 6a64f2fa8b11cdc7ad774709abea6aa6317ce69b | |
parent | 237fe0246c126456130cdd909a24dd2b67f15942 (diff) | |
parent | 9a1528db6cc6c121f5e1bea782d620eef40b6a9f (diff) | |
download | ATRI-103f3c01d1a3568686a79208c3712b9d82e26c31.tar.gz ATRI-103f3c01d1a3568686a79208c3712b9d82e26c31.tar.bz2 ATRI-103f3c01d1a3568686a79208c3712b9d82e26c31.zip |
π Merge pull request #88 from NekomiyaShizuku/patch-1
Fix typo
-rw-r--r-- | ATRI/plugins/code_runner/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/code_runner/__init__.py b/ATRI/plugins/code_runner/__init__.py index 95d3b0c..88196e8 100644 --- a/ATRI/plugins/code_runner/__init__.py +++ b/ATRI/plugins/code_runner/__init__.py @@ -39,8 +39,8 @@ async def _(event: MessageEvent, opt: str = ArgPlainText("opt")): await code_runner.finish(CodeRunner().help()) content = MessageSegment.at(user_id) + str(await CodeRunner().runner(unescape(opt))) - is_save = MessageChecker(str(content)).check_cq_code - if not is_save: + is_safe = MessageChecker(str(content)).check_cq_code + if not is_safe: await code_runner.finish("ζζ½ε¨ηι£ι©, δΈδΊει") await code_runner.finish(Message(content)) |