From 2dd5092b725d0a36d79a8c24a35996ec8d316c05 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 4 Jan 2019 18:58:36 +0100 Subject: [PATCH] Allow different command prefixes to be sent --- discordbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordbot.py b/discordbot.py index 6e1f6048..18f8ca77 100644 --- a/discordbot.py +++ b/discordbot.py @@ -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()