From b84cfafea4039e8601aeb8cbe88a1ce4f3d8140d Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Sun, 18 Sep 2022 20:38:23 -0700 Subject: [PATCH] ignore messages that stat with ! --- app/cogs/markov.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/cogs/markov.py b/app/cogs/markov.py index ceb0edcb..c3bf131d 100644 --- a/app/cogs/markov.py +++ b/app/cogs/markov.py @@ -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