Skip to content

Commit

Permalink
fix: Override sender host by bot account
Browse files Browse the repository at this point in the history
  • Loading branch information
siderai committed May 24, 2023
1 parent 62c0d39 commit b86e8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions botx/bots/bots.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ async def execute_command(self, message: dict) -> None:
logger.bind(botx_bot=True, payload=message).debug("process incoming message")
msg = Message.from_dict(message, self)

# raise UnknownBotError if not registered.
self.get_account_by_bot_id(msg.bot_id)
# raise UnknownBotError if not registered.p
msg.host = self.get_account_by_bot_id(msg.bot_id).host

await self(msg)

Expand Down

0 comments on commit b86e8da

Please sign in to comment.