diff --git a/orochi/bot.py b/orochi/bot.py index e22dd1c..b838681 100644 --- a/orochi/bot.py +++ b/orochi/bot.py @@ -207,6 +207,12 @@ async def send(ctx: commands.Context, *, message: str): await ctx.send(message) +@bot.command(help="Supprime les derniers messages.") +@commands.has_permissions(administrator=True) +async def clear(ctx: commands.Context, limit: int = 100): + await ctx.channel.purge(limit=limit) + + @bot.command(help="Envoyer un message à Philia par la pensée en tant que Brother.") @commands.has_permissions(administrator=True) async def brother(ctx: commands.Context, *, message: str):