Sledgehammer config approach
This commit is contained in:
4
main.py
4
main.py
@@ -39,6 +39,10 @@ def main(**passed_config):
|
||||
|
||||
config = BotResources.read_config_file()
|
||||
|
||||
if not config:
|
||||
LOGGER.warning("No config file exists, please enter this information now")
|
||||
BotResources.write_config_file(init=True)
|
||||
|
||||
# Overwrite config options if they were passed
|
||||
if len(passed_config.keys()) == 0:
|
||||
for sub in config:
|
||||
|
||||
Reference in New Issue
Block a user