From bdb2338ab9149d796d3e15fdaf65f0c944bd0251 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Wed, 4 Jan 2023 22:31:58 +0100 Subject: [PATCH] Still debugging --- modules/scheduled.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/scheduled.py b/modules/scheduled.py index c564211..4ded913 100644 --- a/modules/scheduled.py +++ b/modules/scheduled.py @@ -182,9 +182,9 @@ async def commands_register(): logWrite(f"Registered user commands for locale {lc}") # Registering admin/owner commands - for admin in configGet("admins")+[configGet("owner")]: + for admin in configGet("admins").extend([configGet("owner")]): try: - await app.set_bot_commands(commands["admins"]+commands["users"], scope=BotCommandScopeChat(chat_id=admin)) + await app.set_bot_commands(commands["admins"].extend(commands["users"]), scope=BotCommandScopeChat(chat_id=admin)) if admin == configGet("owner"): logWrite(f"Registered admin commands for owner {configGet('owner')}") else: @@ -208,4 +208,5 @@ async def commands_register(): if configGet("debug") is True: + print(commands, flush=True) logWrite(f"Complete commands registration:\n{dumps(commands_raw, indent=4, ensure_ascii=False, encode_html_chars=False)}") \ No newline at end of file