Fix a bunch of config issues
This commit is contained in:
4
bot.py
4
bot.py
@@ -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*",
|
||||
|
||||
Reference in New Issue
Block a user