Add error handlers

This commit is contained in:
nex 2022-10-15 15:31:21 +01:00
parent f3e4e88ffd
commit 58256a317f

View file

@ -35,6 +35,11 @@ async def on_application_command_error(ctx: discord.ApplicationContext, error: E
await ctx.respond("Application Command Error: `%r`" % error)
@bot.listen("on_command_error")
async def on_command_error(ctx: discord.ApplicationContext, error: Exception):
await ctx.respond("Command Error: `%r`" % error)
@bot.event
async def on_ready():
console.log("Logged in as", bot.user)