From 33891cb409fbd1f8703fbdc2e247e61a272d2a67 Mon Sep 17 00:00:00 2001 From: Myned Date: Sat, 14 Oct 2017 21:54:18 -0400 Subject: [PATCH] Error output to ctx helper method --- src/main/misc/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/misc/exceptions.py b/src/main/misc/exceptions.py index b772bd4..e9fc682 100644 --- a/src/main/misc/exceptions.py +++ b/src/main/misc/exceptions.py @@ -1,6 +1,10 @@ base = '⚠️ **An internal error has occurred.** Please notify my master! 🐺' +async def send_error(ctx, error): + await ctx.send('{}\n```\n{}```'.format(base, error)) + + class Left(Exception): pass