1
Fork 0
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:
Steffo 2019-01-04 18:58:36 +01:00
parent 36ae732ea7
commit 2dd5092b72

View file

@ -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()