diff options
author | Kyomotoi <[email protected]> | 2021-04-05 16:40:01 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-05 16:40:01 +0800 |
commit | 212424da74fecbd77c9824e422ea8b028b330c9e (patch) | |
tree | 924986e3aef7b7eb14b3cf9766a894ea0ca67505 | |
parent | 6e7628e2b675b43577ce6b4218029dbc8d69aebb (diff) | |
download | ATRI-212424da74fecbd77c9824e422ea8b028b330c9e.tar.gz ATRI-212424da74fecbd77c9824e422ea8b028b330c9e.tar.bz2 ATRI-212424da74fecbd77c9824e422ea8b028b330c9e.zip |
🐛 修傻逼BUG
-rw-r--r-- | ATRI/plugins/nsfw.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/plugins/nsfw.py b/ATRI/plugins/nsfw.py index 10e74fb..0d071cb 100644 --- a/ATRI/plugins/nsfw.py +++ b/ATRI/plugins/nsfw.py @@ -29,8 +29,8 @@ async def _nsfw_checking(bot: Bot, event: GroupMessageEvent) -> None: group = event.group_id check = await coolq_code_check(msg, user, group) if check: - url = nsfw_url + re.findall(r"url=(.*?)]", msg)[0] try: + url = nsfw_url + re.findall(r"url=(.*?)]", msg)[0] data = json.loads(await get_bytes(url)) except: log.warning('检测涩图失败,请查阅文档以获取帮助') @@ -100,4 +100,4 @@ async def _nsfw_reading(bot: Bot, level = "?能不能换张55完全冲不起来" repo = f"涩值:{result}\n{level}" - await nsfw_reading.finish(repo)
\ No newline at end of file + await nsfw_reading.finish(repo) |