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