mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 01:06:19 +00:00
added ignore if // at the beginning
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user