Ignoring some errors
This commit is contained in:
parent
0d12b1849f
commit
cc9ecc6ba0
6
main.py
6
main.py
|
@ -204,6 +204,7 @@ class Bot(commands.Bot):
|
||||||
msg += "-----------------------------\n"
|
msg += "-----------------------------\n"
|
||||||
print(msg)
|
print(msg)
|
||||||
|
|
||||||
|
# pylint: disable=no-member
|
||||||
self.logging.info(content=msg, name="On Ready")
|
self.logging.info(content=msg, name="On Ready")
|
||||||
|
|
||||||
async def on_message(self, message):
|
async def on_message(self, message):
|
||||||
|
@ -284,7 +285,7 @@ async def on_command_error(ctx, error):
|
||||||
f"**An error occured: {type(error).__name__}. "
|
f"**An error occured: {type(error).__name__}. "
|
||||||
f"Please contact {bot.appinfo.owner}.**"
|
f"Please contact {bot.appinfo.owner}.**"
|
||||||
)
|
)
|
||||||
error_embed = await bot.logging.error(
|
error_embed = await bot.logging.error( # pylint: disable=no-member
|
||||||
error, ctx,
|
error, ctx,
|
||||||
ctx.command.cog.qualified_name if ctx.command.cog.qualified_name
|
ctx.command.cog.qualified_name if ctx.command.cog.qualified_name
|
||||||
else "DMs"
|
else "DMs"
|
||||||
|
@ -295,7 +296,8 @@ async def on_command_error(ctx, error):
|
||||||
|
|
||||||
# If anything else goes wrong, just go ahead and send it in chat.
|
# If anything else goes wrong, just go ahead and send it in chat.
|
||||||
else:
|
else:
|
||||||
await bot.logging.error(
|
|
||||||
|
await bot.logging.error( # pylint: disable=no-member
|
||||||
error, ctx,
|
error, ctx,
|
||||||
ctx.command.cog.qualified_name if ctx.command.cog.qualified_name
|
ctx.command.cog.qualified_name if ctx.command.cog.qualified_name
|
||||||
else "DMs"
|
else "DMs"
|
||||||
|
|
Loading…
Reference in New Issue