|
@ -263,6 +263,8 @@ class Logbot(Bot): |
|
|
self.db[message.room]["stylesheet"] = stylesheet |
|
|
self.db[message.room]["stylesheet"] = stylesheet |
|
|
room_name = self._parse_room_name(message.room) |
|
|
room_name = self._parse_room_name(message.room) |
|
|
room_path = os.path.join(self.output, self.db[message.room]["folder"]) |
|
|
room_path = os.path.join(self.output, self.db[message.room]["folder"]) |
|
|
|
|
|
if "@" in room_path: # hacky |
|
|
|
|
|
room_path = self._parse_room_name(room_path) |
|
|
stylesheet_path = os.path.join("stylesheets", f"{ stylesheet }.css") |
|
|
stylesheet_path = os.path.join("stylesheets", f"{ stylesheet }.css") |
|
|
stylesheet_dest_path = os.path.join(room_path, "stylesheet.css") |
|
|
stylesheet_dest_path = os.path.join(room_path, "stylesheet.css") |
|
|
try: |
|
|
try: |
|
@ -280,6 +282,8 @@ class Logbot(Bot): |
|
|
self.db[message.room]["font"] = font |
|
|
self.db[message.room]["font"] = font |
|
|
room_name = self._parse_room_name(message.room) |
|
|
room_name = self._parse_room_name(message.room) |
|
|
room_path = os.path.join(self.output, self.db[message.room]["folder"]) |
|
|
room_path = os.path.join(self.output, self.db[message.room]["folder"]) |
|
|
|
|
|
if "@" in room_path: # hacky |
|
|
|
|
|
room_path = self._parse_room_name(room_path) |
|
|
font_path = os.path.join("fonts", f"{ font }.ttf") |
|
|
font_path = os.path.join("fonts", f"{ font }.ttf") |
|
|
font_dest_path = os.path.join(room_path, "font.ttf") |
|
|
font_dest_path = os.path.join(room_path, "font.ttf") |
|
|
if font == 'none': |
|
|
if font == 'none': |
|
|