From aed050a9b1d98fc52123ee09f2a65516cc9db3a3 Mon Sep 17 00:00:00 2001 From: Paillat Date: Fri, 23 Dec 2022 14:42:22 +0100 Subject: [PATCH] added ignore if // at the beginning --- code/cogs/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/cogs/chat.py b/code/cogs/chat.py index aff1c7f..ac1ca98 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -69,7 +69,7 @@ async def on_message_process(message: discord.Message, self: Chat): #check if the message has been sent in the channel set in the database c.execute("SELECT channel_id FROM data WHERE guild_id = ?", (message.guild.id,)) #check if the message begins with --, if it does, ignore it, it's a comment - if message.content.startswith("-"): + if message.content.startswith("-") or message.content.startswith("//"): #print("The message is a comment") return #select channels from the premium table