diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 958889a..467370e 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -138,9 +138,11 @@ class Logbot(Bot): if room not in self.db.keys(): self.db[room] = {} + if "messages" not in self.db[room]: self.db[room]["messages"] = {} + if "title" not in self.db[room]: self.db[room]["title"] = room - self.log.info(f"Added to the database: { room }") + self.log.info(f"Added to the database: { room }") if not os.path.exists(room_path): os.mkdir(room_path)