From 136e2e43506276a6fa596e542b731e897fbe6849 Mon Sep 17 00:00:00 2001 From: WhatDidYouExpect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Mon, 7 Jul 2025 16:26:37 +0200 Subject: [PATCH] add the new commands to the help --- bot.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index cce5e21..7c2050c 100644 --- a/bot.py +++ b/bot.py @@ -335,8 +335,8 @@ async def help(ctx: commands.Context) -> None: ) command_categories: Dict[str, List[str]] = { - f"{(_('command_help_categories_general'))}": ["mem", "talk", "about", "ping", "image"], - f"{(_('command_help_categories_admin'))}": ["stats", "retrain"] + f"{(_('command_help_categories_general'))}": ["mem", "talk", "about", "ping", "impact", "demotivator", "help"], + f"{(_('command_help_categories_admin'))}": ["stats", "retrain", "setlanguage"] } custom_commands: List[str] = [] @@ -357,9 +357,11 @@ async def help(ctx: commands.Context) -> None: @bot.hybrid_command(description=f"{(_('command_desc_setlang'))}") @app_commands.describe(locale="Choose your language") async def setlanguage(ctx: commands.Context, locale: str) -> None: + if ctx.author.id != ownerid: + await ctx.send(":thumbsdown:") + return await ctx.defer() set_language(locale) - await ctx.send(":thumbsup:") # Event: Called on every message