Skip to content

Instantly share code, notes, and snippets.

@jkdz12
jkdz12 / error_handler.py
Last active March 3, 2019 18:14 — forked from EvieePy/error_handler.py
Simple Error Handling for ext.commands - discord.py
import traceback
import sys
from discord.ext import commands
import discord
"""
If you are not using this inside a cog, add the event decorator e.g:
@bot.event
async def on_command_error(ctx, error)