mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
derp
This commit is contained in:
parent
d868e9d440
commit
24f0db1ea4
1 changed files with 2 additions and 2 deletions
|
@ -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>!")
|
||||
|
|
Loading…
Reference in a new issue