drop messages to 15k and remove the check for bot commands
This commit is contained in:
parent
a4fbc9c8b3
commit
4f458f279f
@ -13,12 +13,8 @@ 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
|
||||
and message.content[0] != "!"
|
||||
):
|
||||
for message in await ctx.history(limit=15000).flatten():
|
||||
if message.author.id == user.id and "https" not in message.content:
|
||||
authors_mesages.append(message.content)
|
||||
|
||||
# Make the model
|
||||
@ -33,8 +29,7 @@ class Markov(commands.Cog):
|
||||
for i in range(10):
|
||||
dummy.append(str(user_model.make_sentence(max_words=25, tries=100)))
|
||||
await ctx.send(
|
||||
"Heres a markov chain based on %s's shitposts"
|
||||
+ user.mention
|
||||
"Heres a markov chain based on %s's shitposts" % user.mention
|
||||
+ "\n\n"
|
||||
+ " ".join(dummy)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user