Spoilers, major command system improvements #4

Merged
profitroll merged 27 commits from dev into master 2023-01-05 13:45:15 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 1268c33830 - Show all commits

View File

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