mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +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):
|
async def on_message(message: discord.Message):
|
||||||
global voice_client
|
global voice_client
|
||||||
global voice_player
|
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
|
return
|
||||||
sentry.user_context({
|
sentry.user_context({
|
||||||
"discord": {
|
"discord": {
|
||||||
|
@ -194,7 +194,7 @@ async def on_message(message: discord.Message):
|
||||||
"discriminator": message.author.discriminator
|
"discriminator": message.author.discriminator
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if not message.content.startswith("!") and not message.author.bot:
|
if not message.content.startswith("!"):
|
||||||
client.send_message(message.channel,
|
client.send_message(message.channel,
|
||||||
":warning: In questa chat sono consentiti solo comandi per il bot.\n"
|
":warning: In questa chat sono consentiti solo comandi per il bot.\n"
|
||||||
"Riinvia il tuo messaggio in <#425780562805129226>!")
|
"Riinvia il tuo messaggio in <#425780562805129226>!")
|
||||||
|
|
Loading…
Reference in a new issue