Browse Source

Save the DB when writing to it

master
Luke Murphy 4 years ago
parent
commit
cdb2ce8b04
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 1
      LogBot/logbot.py

1
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):

Loading…
Cancel
Save