From 45c336e60927ba48d0f486106705b4abc78aede2 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 25 May 2023 10:50:37 +0000 Subject: [PATCH] Fix message sending in newroom command --- src/gptbot/commands/newroom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gptbot/commands/newroom.py b/src/gptbot/commands/newroom.py index 8fa886e..79ae6a8 100644 --- a/src/gptbot/commands/newroom.py +++ b/src/gptbot/commands/newroom.py @@ -43,4 +43,4 @@ async def command_newroom(room: MatrixRoom, event: RoomMessageText, bot): await bot.matrix_client.joined_rooms() await bot.send_message(room, f"Alright, I've created a new room called '{room_name}' and invited you to it. You can find it at {new_room.room_id}", True) - await bot.send_message(bot.rooms[new_room.room_id], f"Welcome to the new room! What can I do for you?") + await bot.send_message(bot.matrix_client.rooms[new_room.room_id], f"Welcome to the new room! What can I do for you?")