summaryrefslogtreecommitdiff
path: root/ATRI/plugins/code_runner
diff options
context:
space:
mode:
πŸ”€ Merge pull request #88 from NekomiyaShizuku/patch-1
Fix typo
Diffstat (limited to 'ATRI/plugins/code_runner')
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))