From 10f22ed2c6c3ccd080d0ccfad46482b7c7359a9c Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 6 Jul 2023 10:31:47 -0700 Subject: [PATCH] nope that didnt work --- app/cogs/markov.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/cogs/markov.py b/app/cogs/markov.py index 7f1a16ba..25a4059c 100644 --- a/app/cogs/markov.py +++ b/app/cogs/markov.py @@ -21,9 +21,8 @@ class Markov(commands.Cog): # Get messages from passed in user authors_mesages = [] - 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: + for message in await ctx.history(limit=20000).flatten(): + if message.author.id == user.id and "https" not in message.content: authors_mesages.append(message.content) # Make the model @@ -32,7 +31,7 @@ class Markov(commands.Cog): dummy = [] for i in range(random.randint(3, 9)): - dummy.append(str(user_model.make_sentence(max_words=25, tries=900))) + dummy.append(str(user_model.make_sentence(max_words=100, tries=900))) await temp_message.edit( "Heres a markov chain based on %s's shitposts" % user.mention + "\n\n"