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]})