nope that didnt work
This commit is contained in:
parent
9f97a07ae7
commit
f52a0fbcfd
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user