Fix a bunch of config issues

This commit is contained in:
2020-12-19 02:57:27 +01:00
parent 53df5f613f
commit 38d10c5c9d
2 changed files with 14 additions and 8 deletions

4
bot.py
View File

@@ -61,7 +61,7 @@ async def on_ready():
async def on_message(message: discord.Message):
global last_loeh
if message.guild is not None and not message.author.bot:
if config_get('loeh-enable') and LOEH_REGEX.match(message.content):
if config_get('loeh-enable', message.guild.id) and LOEH_REGEX.match(message.content):
if message.author.id == LOEH_ID:
await message.channel.send("https://siphalor.de/img/spidy-is-that-you.jpg")
else:
@@ -88,7 +88,7 @@ async def on_message(message: discord.Message):
except (discord.Forbidden, discord.HTTPException):
await message.channel.send('Failed to complete your command, Sir')
return
elif config_get('inf19x-insiders-enable'):
elif config_get('inf19x-insiders-enable', message.guild.id):
if PING_REGEX.search(message.content):
embed = discord.Embed(
title="*pinken, schwaches Verb*",