mirror of
https://github.com/hibobmaster/matrix_chatgpt_bot.git
synced 2024-09-07 22:11:53 +00:00
Fix runtime error
This commit is contained in:
parent
5f9fb321fb
commit
f568c0bc1a
@ -250,8 +250,9 @@ class Bot:
|
||||
|
||||
# message_callback RoomMessageText event
|
||||
async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> None:
|
||||
if room.room_id not in self.whitelist_room_id:
|
||||
return
|
||||
if self.whitelist_room_id is not None:
|
||||
if room.room_id not in self.whitelist_room_id:
|
||||
return
|
||||
room_id = room.room_id
|
||||
|
||||
# reply event_id
|
||||
|
Loading…
Reference in New Issue
Block a user