From 6018cd3ed32ba787d7668a022aff0589f7b43f7a Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 7 Nov 2019 11:06:56 -0700 Subject: [PATCH] Add more startup logging --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 6ca0ea30..25577358 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,6 +60,7 @@ LogService.info("index", "Starting bot..."); const joinedRooms = await client.getJoinedRooms(); // Ensure we're also joined to the rooms we're protecting + LogService.info("index", "Resolving protected rooms..."); for (const roomRef of config.protectedRooms) { const permalink = Permalinks.parseUrl(roomRef); if (!permalink.roomIdOrAlias) continue; @@ -73,6 +74,7 @@ LogService.info("index", "Starting bot..."); } // Ensure we're also in the management room + LogService.info("index", "Resolving management room..."); const managementRoomId = await client.resolveRoom(config.managementRoom); if (!joinedRooms.includes(managementRoomId)) { config.managementRoom = await client.joinRoom(config.managementRoom);