1
0
mirror of https://github.com/osmarks/autobotrobot synced 2025-01-09 15:10:27 +00:00

fix required argument errors

This commit is contained in:
osmarks 2020-10-11 17:50:01 +01:00
parent 9b48a5086c
commit f42dc02572

View File

@ -43,6 +43,7 @@ async def on_message(message):
async def on_command_error(ctx, err):
#print(ctx, err)
if isinstance(err, (commands.CommandNotFound, commands.CheckFailure)): return
if isinstance(err, commands.MissingRequiredArgument): return await ctx.send(embed=util.error_embed(str(err)))
try:
trace = re.sub("\n\n+", "\n", "\n".join(traceback.format_exception(err, err, err.__traceback__)))
#print(trace)