decrease it to 20k messages

This commit is contained in:
Luke Robles 2022-09-18 20:59:38 -07:00
parent b84cfafea4
commit ccd57d1e88

View File

@ -13,7 +13,7 @@ class Markov(commands.Cog):
# Get messages from passed in user # Get messages from passed in user
authors_mesages = [] authors_mesages = []
for message in await ctx.history(limit=50000).flatten(): for message in await ctx.history(limit=20000).flatten():
if ( if (
message.author.id == user.id message.author.id == user.id
and "https" not in message.content and "https" not in message.content
@ -32,7 +32,12 @@ class Markov(commands.Cog):
dummy = [] dummy = []
for i in range(10): for i in range(10):
dummy.append(str(user_model.make_sentence(max_words=25, tries=100))) dummy.append(str(user_model.make_sentence(max_words=25, tries=100)))
await ctx.send(" ".join(dummy)) await ctx.send(
"Heres a markov chain based on %s's shitposts"
+ user.mention
+ "\n\n"
+ " ".join(dummy)
)
def setup(bot): def setup(bot):