Spoilers, major command system improvements #4

Merged
profitroll merged 27 commits from dev into master 2023-01-05 13:45:15 +02:00
Showing only changes of commit 1268c33830 - Show all commits

View File

@ -111,7 +111,7 @@ async def commands_register():
valid_locales = [] valid_locales = []
files_locales = listdir(f'{configGet("locale", "locations")}') files_locales = listdir(f'{configGet("locale", "locations")}')
for entry in files_locales: for entry in files_locales:
if entry.endswith(".json"): if entry.endswith(".json"):
valid_locales.append(".".join(entry.split(".")[:-1])) valid_locales.append(".".join(entry.split(".")[:-1]))
@ -131,7 +131,7 @@ async def commands_register():
enabled = False enabled = False
for module in config_commands[command]["modules"]: for module in config_commands[command]["modules"]:
if config_modules[module] == module: if config_modules[module]["enabled"] is True:
enabled = True enabled = True
if enabled is False: if enabled is False: