diff options
| author | 2018-09-13 13:35:05 +0100 | |
|---|---|---|
| committer | 2018-09-13 13:35:05 +0100 | |
| commit | 1eed727bc5a8efaded32035cd1922851d799156c (patch) | |
| tree | acc6efcca649bada764ec86781ca9d64d908d9c2 /start.py | |
| parent | Oops, this isn't C#. (diff) | |
| signature | ||
Add !enablemodule and !disablemodule to modules.py
Diffstat (limited to 'start.py')
| -rwxr-xr-x | start.py | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -25,10 +25,9 @@ bot.database = database bot.config = config.load_config() bot.args = args -whitelist = bot.config.get("module_whitelist", None) -if not whitelist == None: - whitelist = whitelist.split(",") -bot.modules.load_modules(whitelist=whitelist) +whitelist = bot.get_setting("module-whitelist", []) +blacklist = bot.get_setting("module-blacklist", []) +bot.modules.load_modules(whitelist=whitelist, blacklist=blacklist) server_details = database.servers.get_all() servers = [] |
