From 25dc6021a7e3482f2eeb25fa3c069c8a75a81635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E7=BE=85=E7=8B=BC?= Date: Sun, 8 Dec 2024 19:39:40 +0800 Subject: [PATCH] update --- bot.py | 2 +- bots/qqbot/message.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 1c16254d64..4d1dfc1b54 100644 --- a/bot.py +++ b/bot.py @@ -11,7 +11,7 @@ ascii_art = r''' - ._. _ .____ ._. + _ _ ____ _ /\ | | (_) | _ \ | | / \ | | ____ _ _ __ _ | |_) | ___ | |_ / /\ \ | |/ / _` | '__| | | _ < / _ \| __| diff --git a/bots/qqbot/message.py b/bots/qqbot/message.py index 1635be9969..e7f09e22ab 100644 --- a/bots/qqbot/message.py +++ b/bots/qqbot/message.py @@ -226,6 +226,8 @@ async def delete(self): except Exception: Logger.error(traceback.format_exc()) return False + else: + return False sendMessage = send_message asDisplay = as_display @@ -253,7 +255,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb): class FetchedSession(Bot.FetchedSession): async def send_direct_message(self, message_chain, disable_secret_check=False, enable_parse_message=True, enable_split_image=True): - from bots.qqbot.bot import client + from bots.qqbot.bot import client # noqa if self.target.target_from == target_guild_prefix: self.session.message = Message(api=client.api, event_id=None, data={ "channel_id": self.target.target_id.split('|')[-1]})