Skip to content

Commit

Permalink
ajout get bd
Browse files Browse the repository at this point in the history
  • Loading branch information
danydudiot committed Aug 14, 2024
1 parent 1dce80c commit 4f8acb7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/MySlashCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,18 @@ async def userscan(self, ctx: SlashContext) -> None:
@slash_command(name="nuke", description="Permet de nuke la BD.",
default_member_permissions=Permissions.ADMINISTRATOR)
@contexts(guild=True, bot_dm=False)
async def userscan(self, ctx: SlashContext) -> None:
async def nuke(self, ctx: SlashContext) -> None:
"""Permet de scanner tous les membres du serveur et de mettre à jour la BD."""
nuke()
await ctx.send("La BD à été nuke.", ephemeral=True)

@slash_command(name="bd", description="Permet d'obtenir' BD.",
default_member_permissions=Permissions.ADMINISTRATOR)
@contexts(guild=True, bot_dm=False)
async def bd(self, ctx: SlashContext) -> None:
"""Permet de scanner tous les membres du serveur et de mettre à jour la BD."""
await ctx.send("Voici la BD.", file="data/UserBase.pkl", ephemeral=False)

@slash_command(name="help", description="Affiche la page d'Aide.")
async def help(self, ctx: SlashContext) -> None:
"""Affiche le Contenu de HELP.md."""
Expand Down

0 comments on commit 4f8acb7

Please sign in to comment.