From cdb2ce8b04544a96600dd825ba4aead695a39a67 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 27 Feb 2021 20:15:28 +0100 Subject: [PATCH] Save the DB when writing to it --- LogBot/logbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index a5d4b42..92ce607 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -142,6 +142,7 @@ class Logbot(Bot): self.db[room]["messages"] = {} if "title" not in self.db[room]: self.db[room]["title"] = room + self.db._dumps() self.log.info(f"Added to the database: { room }") if not os.path.exists(room_path):