mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Ignoring some errors
This commit is contained in:
parent
0d12b1849f
commit
cc9ecc6ba0
1 changed files with 4 additions and 2 deletions
6
main.py
6
main.py
|
@ -204,6 +204,7 @@ class Bot(commands.Bot):
|
|||
msg += "-----------------------------\n"
|
||||
print(msg)
|
||||
|
||||
# pylint: disable=no-member
|
||||
self.logging.info(content=msg, name="On Ready")
|
||||
|
||||
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"Please contact {bot.appinfo.owner}.**"
|
||||
)
|
||||
error_embed = await bot.logging.error(
|
||||
error_embed = await bot.logging.error( # pylint: disable=no-member
|
||||
error, ctx,
|
||||
ctx.command.cog.qualified_name if ctx.command.cog.qualified_name
|
||||
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.
|
||||
else:
|
||||
await bot.logging.error(
|
||||
|
||||
await bot.logging.error( # pylint: disable=no-member
|
||||
error, ctx,
|
||||
ctx.command.cog.qualified_name if ctx.command.cog.qualified_name
|
||||
else "DMs"
|
||||
|
|
Loading…
Reference in a new issue