fix bot replying to its own message
This commit is contained in:
parent
f85d0a0f20
commit
36a1867ed5
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class Bot:
|
|||
await self.leave(room)
|
||||
|
||||
async def room_message_callback(self, room: MatrixRoom, event: RoomMessage):
|
||||
if type(room) is not MatrixRoom:
|
||||
if type(room) is not MatrixRoom or event.sender == self.client.user_id:
|
||||
return
|
||||
|
||||
user = event.sender
|
||||
|
|
Loading…
Reference in a new issue