From 93a290d1f94a4fca3fcc65972df984d214a826e3 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 6 Jul 2023 10:20:13 -0700 Subject: [PATCH] Poll users messages specifcally --- app/cogs/markov.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/cogs/markov.py b/app/cogs/markov.py index fcafd7ba..7f1a16ba 100644 --- a/app/cogs/markov.py +++ b/app/cogs/markov.py @@ -21,8 +21,9 @@ class Markov(commands.Cog): # Get messages from passed in user authors_mesages = [] - for message in await ctx.history(limit=20000).flatten(): - if message.author.id == user.id and "https" not in message.content: + for message in await user.history(limit=20000).flatten(): + # Dont add url's to the model, it will try to embed the pages and ruin the message + if "https" not in message.content: authors_mesages.append(message.content) # Make the model