Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf committed Dec 8, 2024
1 parent c519e10 commit 25dc602
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


ascii_art = r'''
._. _ .____ ._.
_ _ ____ _
/\ | | (_) | _ \ | |
/ \ | | ____ _ _ __ _ | |_) | ___ | |_
/ /\ \ | |/ / _` | '__| | | _ < / _ \| __|
Expand Down
4 changes: 3 additions & 1 deletion bots/qqbot/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]})
Expand Down

0 comments on commit 25dc602

Please sign in to comment.