diff options
| author | 2018-08-30 11:41:02 +0100 | |
|---|---|---|
| committer | 2018-08-30 11:41:02 +0100 | |
| commit | 01a5032e8701193557e908b2b3d2cf4258557e5d (patch) | |
| tree | 0077ae75300a74a3d240c178a4bd1ffd79981c89 /start.py | |
| parent | Return config from Config.load_config instead of setting it on bot (diff) | |
| signature | ||
Load whitelist in start.py, pass to ModuleManager.load_modules
Diffstat (limited to 'start.py')
| -rwxr-xr-x | start.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -24,7 +24,11 @@ config = Config.Config(bot, args.config) bot.database = database bot.config = config.load_config() bot.args = args -bot.modules.load_modules() + +whitelist = bot.config.get("module_whitelist", None) +if not whitelist == None: + whitelist = whitelist.split(",") +bot.modules.load_modules(whitelist=whitelist) server_details = database.servers.get_all() servers = [] |
