Skip to content

Commit 6ecac34

Browse files
committed
chang text
1 parent 4e7f7f4 commit 6ecac34

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/commands/help.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ def __init__(self, bot: AeBot):
1515

1616
@app_commands.command(
1717
name="help",
18-
description="Affiche la liste des commandes avec leurs sous-commandes",
18+
description=(
19+
"Affiche la liste des commandes avec"
20+
" leurs sous-commandes et leurs description"
21+
),
1922
)
2023
async def help(self, interaction: Interaction):
2124
embed = Embed(title="Aide du bot", color=Color.blue())
2225

2326
for command in self.bot.tree.get_commands():
24-
# Vérifie si la commande est un groupe avec des sous-commandes
2527
if isinstance(command, app_commands.Group) and command.commands:
26-
# Liste les sous-commandes du groupe
2728
subcommands = "\n".join(
2829
f" /{command.name} {sub.name} - {sub.description}"
2930
for sub in command.commands
@@ -32,7 +33,6 @@ async def help(self, interaction: Interaction):
3233
name=f"/{command.name} (groupe)", value=subcommands, inline=False
3334
)
3435
else:
35-
# Commande simple sans sous-commande
3636
embed.add_field(
3737
name=f"/{command.name}",
3838
value=command.description or "Pas de description.",

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async def setup_hook(self):
4646
async def on_ready(self):
4747
await self.wait_until_ready()
4848
self.watched_guild = self.get_guild(self.settings.guild.id)
49-
await self.change_presence(activity=Game(name="/help"))
49+
await self.change_presence(activity=Game(name="/help help"))
5050
self.logger.info(f"Bot ready to act on {self.watched_guild.name}")
5151

5252
async def on_command(self, ctx: Context):

0 commit comments

Comments
 (0)