mirror of
https://github.com/hibobmaster/matrix_chatgpt_bot.git
synced 2024-10-01 05:35:36 -04:00
Fix runtime error
This commit is contained in:
parent
5f9fb321fb
commit
f568c0bc1a
@ -250,6 +250,7 @@ class Bot:
|
||||
|
||||
# message_callback RoomMessageText event
|
||||
async def message_callback(self, room: MatrixRoom, event: RoomMessageText) -> None:
|
||||
if self.whitelist_room_id is not None:
|
||||
if room.room_id not in self.whitelist_room_id:
|
||||
return
|
||||
room_id = room.room_id
|
||||
|
Loading…
Reference in New Issue
Block a user