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 108d1ec9d5
commit e45bfaacf5

View file

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