Some small cleanups
This commit is contained in:
6
bot.py
6
bot.py
@@ -34,7 +34,7 @@ TOPFIT_WORDS = (
|
|||||||
"vortual reality"
|
"vortual reality"
|
||||||
)
|
)
|
||||||
|
|
||||||
#LOEH_ID = 327126546970312739
|
# LOEH_ID = 327126546970312739
|
||||||
LOEH_ID = 254265844928872448
|
LOEH_ID = 254265844928872448
|
||||||
SIP_ID = 327126546970312739
|
SIP_ID = 327126546970312739
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ async def on_message(message: discord.Message):
|
|||||||
await loeh.edit(mute=False)
|
await loeh.edit(mute=False)
|
||||||
if message is not None:
|
if message is not None:
|
||||||
await message.edit(content="~~Zu Befehl!~~\nEs sei ihm verziehen.")
|
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')
|
await message.channel.send('Failed to complete your command, Sir')
|
||||||
return
|
return
|
||||||
elif PING_REGEX.search(message.content):
|
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)
|
config['loeh-timeout'] = int(val)
|
||||||
save_config()
|
save_config()
|
||||||
await ctx.send('Config successfully updated')
|
await ctx.send('Config successfully updated')
|
||||||
except (ValueError, TypeError) as error:
|
except (ValueError, TypeError):
|
||||||
await ctx.send('Invalid value "' + val + '" for config `' + key + '`')
|
await ctx.send('Invalid value "' + val + '" for config `' + key + '`')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user