mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Allow different command prefixes to be sent
This commit is contained in:
parent
108d1ec9d5
commit
e45bfaacf5
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ class RoyalDiscordBot(discord.Client):
|
|||
"discriminator": message.author.discriminator
|
||||
}
|
||||
})
|
||||
if not message.content.startswith("!"):
|
||||
if not message.content.startswith(self.command_prefix):
|
||||
await message.channel.send(f"⚠️ In questa chat sono consentiti solo comandi per il bot.\n"
|
||||
f"Riinvia il tuo messaggio in un altro canale!")
|
||||
await message.delete()
|
||||
|
|
Loading…
Reference in a new issue