summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0w0 <[email protected]>2023-06-15 14:19:32 +0800
committerGitHub <[email protected]>2023-06-15 14:19:32 +0800
commit103f3c01d1a3568686a79208c3712b9d82e26c31 (patch)
tree6a64f2fa8b11cdc7ad774709abea6aa6317ce69b
parent237fe0246c126456130cdd909a24dd2b67f15942 (diff)
parent9a1528db6cc6c121f5e1bea782d620eef40b6a9f (diff)
downloadATRI-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__.py4
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))