From 8804f1e10d507ba293fafc77a7e93d3a84a5814b Mon Sep 17 00:00:00 2001 From: Lint Action Date: Tue, 4 May 2021 06:29:07 +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/utils/cqcode.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'ATRI/utils/cqcode.py') diff --git a/ATRI/utils/cqcode.py b/ATRI/utils/cqcode.py index 3102a92..e4c6b5e 100644 --- a/ATRI/utils/cqcode.py +++ b/ATRI/utils/cqcode.py @@ -8,9 +8,9 @@ tencent_gchat_url = "gchat.qpic.cn" noob_code = ["record", "video", "music", "xml", "json"] -async def coolq_code_check(cq_code: str, - user: Optional[int] = None, - group: Optional[int] = None): +async def coolq_code_check( + cq_code: str, user: Optional[int] = None, group: Optional[int] = None +): _type = re.findall(r"CQ:(.*?),", cq_code) for i in _type: if i == "image": @@ -18,12 +18,10 @@ async def coolq_code_check(cq_code: str, url = "" if not result else result[0] if tencent_gchat_url not in url: msg = "你注你🐎呢" - await sv.NetworkPost.send_msg(user_id=user, - group_id=group, - message=msg) + await sv.NetworkPost.send_msg(user_id=user, group_id=group, message=msg) else: return True elif i in noob_code: return False else: - return True \ No newline at end of file + return True -- cgit v1.2.3