diff --git a/commands/newroom.py b/commands/newroom.py index 7e77699..11af1f8 100644 --- a/commands/newroom.py +++ b/commands/newroom.py @@ -5,7 +5,7 @@ from nio.rooms import MatrixRoom async def command_newroom(room: MatrixRoom, event: RoomMessageText, bot): room_name = " ".join(event.body.split()[ - 2:]) or context["default_room_name"] + 2:]) or bot.default_room_name bot.logger.log("Creating new room...") new_room = await bot.matrix_client.room_create(name=room_name)