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
36ae732ea7
commit
2dd5092b72
1 changed files with 1 additions and 1 deletions
|
@ -588,7 +588,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