From ae7ea2d379ec7fb0edb8e333145bb141106a2fd2 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sat, 20 Feb 2021 08:19:41 +0800 Subject: =?UTF-8?q?=E2=9C=A8=20=E6=9B=B4=E6=96=B0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=EF=BC=8C=E5=9F=8B=E4=B8=8Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 更新插件: - call-owner - code-runner - status - anime-search - tex(待修复) - 埋下bug: - service中limit作为机器人服务中的开关,目前写入文件亟待修复 --- ATRI/plugins/essential.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ATRI/plugins/essential.py') diff --git a/ATRI/plugins/essential.py b/ATRI/plugins/essential.py index 22f641f..a8ba021 100644 --- a/ATRI/plugins/essential.py +++ b/ATRI/plugins/essential.py @@ -87,7 +87,7 @@ async def _request_friend_event(bot, event: FriendRequestEvent) -> None: try: data = json.loads(path.read_bytes()) - except FileExistsError: + except: data = {} data[event.flag] = { "user_id": event.user_id, @@ -127,7 +127,7 @@ async def _request_group_event(bot, event: GroupRequestEvent) -> None: try: data = json.loads(path.read_bytes()) - except FileExistsError: + except: data = {} data[event.flag] = { "user_id": event.user_id, @@ -243,7 +243,8 @@ async def _lucky_read_bag_event(bot, event: LuckyKingNotifyEvent) -> None: group_file_upload_event = on_notice() @group_file_upload_event.handle() -async def _group_file_upload_event(bot, event: GroupUploadNoticeEvent) -> None: +async def _group_file_upload_event(bot, + event: GroupUploadNoticeEvent) -> None: await group_file_upload_event.finish("让我康康传了啥好东西") @@ -268,6 +269,7 @@ async def _recall_event(bot: Bot, event) -> None: f"{repo}" ) + await bot.send(event, "咱看到惹~!") for superuser in nonebot_config["superusers"]: await HttpPost.send_private_msg( user_id=int(superuser), -- cgit v1.2.3