mirror of
https://github.com/maubot/maubot
synced 2025-08-29 08:50:38 +00:00
Refactor __main__.py and fix things
This commit is contained in:
parent
c685eb5e08
commit
7c9668d8bc
9 changed files with 84 additions and 117 deletions
|
@ -32,9 +32,11 @@ class Config(BaseFileConfig):
|
|||
base = helper.base
|
||||
copy = helper.copy
|
||||
copy("database")
|
||||
copy("crypto_database.type")
|
||||
copy("crypto_database.postgres_uri")
|
||||
copy("crypto_database.pickle_dir")
|
||||
if isinstance(self["crypto_database"], dict):
|
||||
if self["crypto_database.type"] == "postgres":
|
||||
base["crypto_database"] = self["crypto_database.postgres_uri"]
|
||||
else:
|
||||
copy("crypto_database")
|
||||
copy("plugin_directories.upload")
|
||||
copy("plugin_directories.load")
|
||||
copy("plugin_directories.trash")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue