forked from varia/bots
if folder is defined in db, then regenerate log in the folder name, not room name
This commit is contained in:
parent
d8892cef99
commit
dca11cf0c5
@ -156,6 +156,9 @@ class Logbot(Bot):
|
|||||||
def _setup_room(self, room):
|
def _setup_room(self, room):
|
||||||
"""Create directories and database entries for a new room."""
|
"""Create directories and database entries for a new room."""
|
||||||
room_name = self._parse_room_name(room)
|
room_name = self._parse_room_name(room)
|
||||||
|
if room in self.db:
|
||||||
|
room_path = self.db[room]["folder"]
|
||||||
|
else:
|
||||||
room_path = os.path.join(self.output, room_name)
|
room_path = os.path.join(self.output, room_name)
|
||||||
self.log.info(f"Processing setup logic for: { room_path }")
|
self.log.info(f"Processing setup logic for: { room_path }")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user