ignore messages that stat with !

This commit is contained in:
Luke Robles 2022-09-18 20:38:23 -07:00
parent f67d25481c
commit b84cfafea4

View File

@ -14,7 +14,11 @@ class Markov(commands.Cog):
# Get messages from passed in user
authors_mesages = []
for message in await ctx.history(limit=50000).flatten():
if message.author.id == user.id and "https" not in message.content:
if (
message.author.id == user.id
and "https" not in message.content
and message.content[0] != "!"
):
authors_mesages.append(message.content)
# Make the model