mirror of
https://gitlab.com/ddorn/tfjm-discord-bot.git
synced 2024-12-26 05:02:22 +00:00
✨ minor help improvements
This commit is contained in:
parent
b3eaacdd0b
commit
f96b41cd21
@ -400,6 +400,7 @@ class MiscCog(Cog, name="Divers"):
|
||||
|
||||
@group(name="joke", invoke_without_command=True, case_insensitive=True)
|
||||
async def joke(self, ctx: Context):
|
||||
"""Fait discretement une blague aléatoire."""
|
||||
|
||||
m: discord.Message = ctx.message
|
||||
await m.delete()
|
||||
@ -534,7 +535,7 @@ class MiscCog(Cog, name="Divers"):
|
||||
commands = itertools.groupby(self.bot.walk_commands(), attrgetter("cog_name"))
|
||||
|
||||
for cat_name, cat in commands:
|
||||
cat = {c.qualified_name: c for c in cat if not isinstance(c, Group)}
|
||||
cat = {c.qualified_name: c for c in cat}
|
||||
cat = await self.filter_commands(
|
||||
ctx, list(cat.values()), sort=True, key=attrgetter("qualified_name")
|
||||
)
|
||||
|
@ -326,7 +326,7 @@ class TeamsCog(Cog, name="Teams"):
|
||||
@team.command(name="list")
|
||||
@commands.has_role(Role.CNO)
|
||||
async def list_cmd(self, ctx):
|
||||
"""(cno) Affiche les équipes de chaque tournoi présentes sur le discord."""
|
||||
"""(cno) Affiche les équipes présentes sur le discord."""
|
||||
|
||||
embed = discord.Embed(title="Liste des équipes", color=EMBED_COLOR)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user