diff --git a/src/gptbot/callbacks/invite.py b/src/gptbot/callbacks/invite.py index 67995bc..3a190ca 100644 --- a/src/gptbot/callbacks/invite.py +++ b/src/gptbot/callbacks/invite.py @@ -2,9 +2,9 @@ from nio import InviteEvent, MatrixRoom async def room_invite_callback(room: MatrixRoom, event: InviteEvent, bot): if room.room_id in bot.matrix_client.rooms: - logging(f"Already in room {room.room_id} - ignoring invite") + bot.logger.log(f"Already in room {room.room_id} - ignoring invite") return bot.logger.log(f"Received invite to room {room.room_id} - joining...") - response = await bot.matrix_client.join(room.room_id) \ No newline at end of file + await bot.matrix_client.join(room.room_id) \ No newline at end of file