From 5d749651745cbed405fc02875fac6d1c2b397660 Mon Sep 17 00:00:00 2001
From: Lint Action <noreply@github.com>
Date: Thu, 3 Feb 2022 15:32:24 +0000
Subject: =?UTF-8?q?:rotating=5Flight:=20=E8=87=AA=E5=8A=A8=E8=BF=9B?=
 =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 ATRI/plugins/code_runner/__init__.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'ATRI/plugins/code_runner')

diff --git a/ATRI/plugins/code_runner/__init__.py b/ATRI/plugins/code_runner/__init__.py
index 90d4942..26f5c52 100644
--- a/ATRI/plugins/code_runner/__init__.py
+++ b/ATRI/plugins/code_runner/__init__.py
@@ -16,11 +16,13 @@ code_runner = CodeRunner().on_command("/code", "在线运行一段代码,帮
 
 
 @code_runner.handle()
-async def _code_runner(matcher: Matcher, event: MessageEvent, args: Message = CommandArg()):
+async def _code_runner(
+    matcher: Matcher, event: MessageEvent, args: Message = CommandArg()
+):
     user_id = event.get_user_id()
     if not _flmt.check(user_id):
         await code_runner.finish(_flmt_notice)
-    
+
     msg = args.extract_plain_text()
     print(msg, args, type(msg), type(args))
     if msg:
@@ -35,7 +37,6 @@ async def _(event: MessageEvent, opt: str = ArgPlainText("opt")):
     user_id = event.get_user_id()
     msg = opt.split("\n")
 
-    
     if msg[0] == "help":
         content = f"> {MessageSegment.at(user_id)}\n" + "请键入 /code help 以获取帮助~!"
     elif msg[0] == "list":
-- 
cgit v1.2.3