mirror of https://github.com/stijndcl/didier
Cooler Didier no longer spams Zandbak error logs when working on new stuff
parent
0d75340d64
commit
d8663bed38
|
@ -97,6 +97,10 @@ class Events(commands.Cog):
|
||||||
:param ctx: Discord Context
|
:param ctx: Discord Context
|
||||||
:param err: the error thrown
|
:param err: the error thrown
|
||||||
"""
|
"""
|
||||||
|
# Zandbak Didier shouldn't spam the error logs
|
||||||
|
if self.client.user.id == int(constants.coolerDidierId):
|
||||||
|
raise err
|
||||||
|
|
||||||
# Don't handle commands that have their own custom error handler
|
# Don't handle commands that have their own custom error handler
|
||||||
if hasattr(ctx.command, 'on_error'):
|
if hasattr(ctx.command, 'on_error'):
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue