mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 18:27:59 -05:00
[V3 Config] Add MongoDB driver (#972)
* Basic Mongo Driver * Update docstrings * WIP motor support * Use motor * Update docs, add selective importer * Make use of selective importer * Fix docs * Fix config storage location for JSON * Add delimiters in the drivers doc section * Make async things async * Add basic config information for mongo driver * get info from basic setup into config * IT WORKS * Add dependency for RJM's PR.
This commit is contained in:
@@ -89,7 +89,13 @@ def basic_setup():
|
||||
if storage not in storage_dict:
|
||||
storage = None
|
||||
|
||||
default_dirs['STORAGE_TYPE'] = storage_dict[storage]
|
||||
default_dirs['STORAGE_TYPE'] = storage_dict.get(storage, 1)
|
||||
|
||||
if storage_dict.get(storage, 1) == "MongoDB":
|
||||
from redbot.core.drivers.red_mongo import get_config_details
|
||||
default_dirs['STORAGE_DETAILS'] = get_config_details()
|
||||
else:
|
||||
default_dirs['STORAGE_DETAILS'] = {}
|
||||
|
||||
name = ""
|
||||
while len(name) == 0:
|
||||
|
||||
Reference in New Issue
Block a user