From 24f0db1ea43b9c283e4f72c900663f494072f220 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 27 Jun 2018 22:21:17 +0200 Subject: [PATCH] derp --- discordbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discordbot.py b/discordbot.py index 94d4b335..5233aa2d 100644 --- a/discordbot.py +++ b/discordbot.py @@ -185,7 +185,7 @@ async def on_ready(): async def on_message(message: discord.Message): global voice_client global voice_player - if message.channel != client.get_channel(config["Discord"]["main_channel"]): + if message.channel != client.get_channel(config["Discord"]["main_channel"]) or message.author.bot: return sentry.user_context({ "discord": { @@ -194,7 +194,7 @@ async def on_message(message: discord.Message): "discriminator": message.author.discriminator } }) - if not message.content.startswith("!") and not message.author.bot: + if not message.content.startswith("!"): client.send_message(message.channel, ":warning: In questa chat sono consentiti solo comandi per il bot.\n" "Riinvia il tuo messaggio in <#425780562805129226>!")