diff --git a/bot.py b/bot.py index 24226f2..f4ff3c1 100644 --- a/bot.py +++ b/bot.py @@ -130,7 +130,8 @@ async def on_ready(): print(f"{GREEN}{get_translation(LOCALE, 'synced_commands')} {len(synced)} {get_translation(LOCALE, 'synced_commands2')} {RESET}") slash_commands_enabled = True ping_server() # ping_server from modules/central.py - print(f"{GREEN}{get_translation(LOCALE, 'started').format(NAME=NAME)}{RESET}") + print(f"{GREEN}{get_translation(LOCALE, 'started').format(name=NAME)}{RESET}") + except discord.errors.Forbidden as perm_error: print(f"{RED}Permission error while syncing commands: {perm_error}{RESET}") print(f"{RED}Make sure the bot has the 'applications.commands' scope and is invited with the correct permissions.{RESET}") @@ -139,7 +140,8 @@ async def on_ready(): print(f"{RED}{get_translation(LOCALE, 'fail_commands_sync')} {e}{RESET}") traceback.print_exc() quit() - print(f"{GREEN}{get_translation(LOCALE, 'started').format(NAME=NAME)}{RESET}") + print(f"{GREEN}{get_translation(LOCALE, 'started').format(name=NAME)}{RESET}") + except Exception as e: print(f"{RED}{get_translation(LOCALE, 'fail_commands_sync')} {e}{RESET}") traceback.print_exc()