1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2018-06-27 22:21:17 +02:00
parent d868e9d440
commit 24f0db1ea4

View file

@ -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>!")