nope that didnt work

This commit is contained in:
Luke Robles 2023-07-06 10:31:47 -07:00
parent 93a290d1f9
commit 10f22ed2c6

View File

@ -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"