added 60 sec. report cooldown

This commit is contained in:
Paillat
2023-03-09 16:49:42 +01:00
parent 218bf2aa03
commit 4c87c66add
2 changed files with 25 additions and 11 deletions

View File

@@ -26,4 +26,9 @@ bot.run(discord_token) # run the bot
@bot.event
async def on_ready():
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="your messages to answer you"))
debug("Bot is ready")
debug("Bot is ready")
@bot.event
async def on_application_command_error(ctx, error):
debug(error)
await ctx.respond(error, ephemeral=True)