add the new commands to the help
This commit is contained in:
parent
6637ece3d8
commit
136e2e4350
1 changed files with 5 additions and 3 deletions
8
bot.py
8
bot.py
|
@ -335,8 +335,8 @@ async def help(ctx: commands.Context) -> None:
|
||||||
)
|
)
|
||||||
|
|
||||||
command_categories: Dict[str, List[str]] = {
|
command_categories: Dict[str, List[str]] = {
|
||||||
f"{(_('command_help_categories_general'))}": ["mem", "talk", "about", "ping", "image"],
|
f"{(_('command_help_categories_general'))}": ["mem", "talk", "about", "ping", "impact", "demotivator", "help"],
|
||||||
f"{(_('command_help_categories_admin'))}": ["stats", "retrain"]
|
f"{(_('command_help_categories_admin'))}": ["stats", "retrain", "setlanguage"]
|
||||||
}
|
}
|
||||||
|
|
||||||
custom_commands: List[str] = []
|
custom_commands: List[str] = []
|
||||||
|
@ -357,9 +357,11 @@ async def help(ctx: commands.Context) -> None:
|
||||||
@bot.hybrid_command(description=f"{(_('command_desc_setlang'))}")
|
@bot.hybrid_command(description=f"{(_('command_desc_setlang'))}")
|
||||||
@app_commands.describe(locale="Choose your language")
|
@app_commands.describe(locale="Choose your language")
|
||||||
async def setlanguage(ctx: commands.Context, locale: str) -> None:
|
async def setlanguage(ctx: commands.Context, locale: str) -> None:
|
||||||
|
if ctx.author.id != ownerid:
|
||||||
|
await ctx.send(":thumbsdown:")
|
||||||
|
return
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
set_language(locale)
|
set_language(locale)
|
||||||
|
|
||||||
await ctx.send(":thumbsup:")
|
await ctx.send(":thumbsup:")
|
||||||
|
|
||||||
# Event: Called on every message
|
# Event: Called on every message
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue