|
@ -155,8 +155,8 @@ logbot @uptime: To check how long @logbot has been around |
|
|
for room in self.rooms: |
|
|
for room in self.rooms: |
|
|
|
|
|
|
|
|
roomname = str(re.match(r".*@", room).group()).replace("@", "") |
|
|
roomname = str(re.match(r".*@", room).group()).replace("@", "") |
|
|
self.room_path = os.path.join(self.output, roomname) |
|
|
room_path = os.path.join(self.output, roomname) |
|
|
self.log.info(f"Room path is set to: { self.room_path }") |
|
|
self.log.info(f"Processing setup logic for: {room_path}") |
|
|
|
|
|
|
|
|
# Check if the room is in the database already |
|
|
# Check if the room is in the database already |
|
|
if not room in self.db.keys(): |
|
|
if not room in self.db.keys(): |
|
@ -166,9 +166,9 @@ logbot @uptime: To check how long @logbot has been around |
|
|
self.log.info(f"Added to the database: { room }") |
|
|
self.log.info(f"Added to the database: { room }") |
|
|
|
|
|
|
|
|
# Check if the room has an output folder already |
|
|
# Check if the room has an output folder already |
|
|
if not os.path.exists(self.room_path): |
|
|
if not os.path.exists(room_path): |
|
|
os.mkdir(self.room_path) |
|
|
os.mkdir(room_path) |
|
|
shutil.copy("stylesheet.css", self.room_path) |
|
|
shutil.copy("stylesheet.css", room_path) |
|
|
self.log.info(f"Created a folder for: { room }") |
|
|
self.log.info(f"Created a folder for: { room }") |
|
|
self.log.info(f"Copied stylesheet.css to: { room }") |
|
|
self.log.info(f"Copied stylesheet.css to: { room }") |
|
|
|
|
|
|
|
|