nope that didnt work
This commit is contained in:
parent
93a290d1f9
commit
10f22ed2c6
@ -21,9 +21,8 @@ class Markov(commands.Cog):
|
|||||||
|
|
||||||
# Get messages from passed in user
|
# Get messages from passed in user
|
||||||
authors_mesages = []
|
authors_mesages = []
|
||||||
for message in await user.history(limit=20000).flatten():
|
for message in await ctx.history(limit=20000).flatten():
|
||||||
# Dont add url's to the model, it will try to embed the pages and ruin the message
|
if message.author.id == user.id and "https" not in message.content:
|
||||||
if "https" not in message.content:
|
|
||||||
authors_mesages.append(message.content)
|
authors_mesages.append(message.content)
|
||||||
|
|
||||||
# Make the model
|
# Make the model
|
||||||
@ -32,7 +31,7 @@ class Markov(commands.Cog):
|
|||||||
|
|
||||||
dummy = []
|
dummy = []
|
||||||
for i in range(random.randint(3, 9)):
|
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(
|
await temp_message.edit(
|
||||||
"Heres a markov chain based on %s's shitposts" % user.mention
|
"Heres a markov chain based on %s's shitposts" % user.mention
|
||||||
+ "\n\n"
|
+ "\n\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user