def on_command_error(ctx, error):
console = bot.get_channel(358776134243975169)
errid = id_generator()
if isinstance(error, commands.CommandNotFound):
return
global totalErrors
totalErrors += 1
await ctx.send(":x: I ran into an error! Please report this on the support guild with the error ID, which is **{1}**. ```py\n{0}```".format(str(error)[29:], errid))
webhook.send(content="[`"+str(datetime.datetime.now(pytz.timezone('America/New_York')).strftime("%H:%M:%S"))+"`][`Godavaru`][:x:]\n"
+"[`CommandHandler`][`Error`]\n"
+"[`ErrorInformation`][`{}`]: {}\n".format(errid, str(error)[29:])
+"[`GuildInformation`]: {}\n".format(ctx.message.guild.name+" ("+str(ctx.message.guild.id)+") owned by "+str(ctx.message.guild.owner)+" ("+str(ctx.message.author.id)+")")
+"[`AuthorInformation`]: {} ({})\n".format(str(ctx.message.author), str(ctx.message.author.id))
+"[`MessageInformation`]: {} ({})\n".format(ctx.message.clean_content, str(ctx.message.id)))
print("["+str(datetime.datetime.now(pytz.timezone('America/New_York')).strftime("%H:%M:%S"))+"][Godavaru]\n"
+"[CommandHandler][Error]\n"
+"[ErrorInformation]: {}\n".format(str(error)[29:])
+"[GuildInformation]: {}\n".format(ctx.message.guild.name+" ("+str(ctx.message.guild.id)+") owned by "+str(ctx.message.guild.owner)+" ("+str(ctx.message.author.id)+")")
+"[AuthorInformation]: {} ({})\n".format(str(ctx.message.author), str(ctx.message.author.id))
+"[MessageInformation]: {} ({})\n".format(ctx.message.clean_content, str(ctx.message.id)))
# help command
评论列表
文章目录