Some small cleanups

This commit is contained in:
2020-12-08 11:40:08 +01:00
parent 65b31c95dd
commit f3a9df7c35

6
bot.py
View File

@@ -34,7 +34,7 @@ TOPFIT_WORDS = (
"vortual reality"
)
#LOEH_ID = 327126546970312739
# LOEH_ID = 327126546970312739
LOEH_ID = 254265844928872448
SIP_ID = 327126546970312739
@@ -94,7 +94,7 @@ async def on_message(message: discord.Message):
await loeh.edit(mute=False)
if message is not None:
await message.edit(content="~~Zu Befehl!~~\nEs sei ihm verziehen.")
except (discord.Forbidden, discord.HTTPException) as error:
except (discord.Forbidden, discord.HTTPException):
await message.channel.send('Failed to complete your command, Sir')
return
elif PING_REGEX.search(message.content):
@@ -147,7 +147,7 @@ async def config_prefix_command(ctx: commands.Context, cmd: str = '', key: str =
config['loeh-timeout'] = int(val)
save_config()
await ctx.send('Config successfully updated')
except (ValueError, TypeError) as error:
except (ValueError, TypeError):
await ctx.send('Invalid value "' + val + '" for config `' + key + '`')