From ccd57d1e88dd1b03ec472b992825d2007b3c4f98 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Sun, 18 Sep 2022 20:59:38 -0700 Subject: [PATCH] decrease it to 20k messages --- app/cogs/markov.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/cogs/markov.py b/app/cogs/markov.py index c3bf131d..9a7bb172 100644 --- a/app/cogs/markov.py +++ b/app/cogs/markov.py @@ -13,7 +13,7 @@ class Markov(commands.Cog): # Get messages from passed in user authors_mesages = [] - for message in await ctx.history(limit=50000).flatten(): + for message in await ctx.history(limit=20000).flatten(): if ( message.author.id == user.id and "https" not in message.content @@ -32,7 +32,12 @@ class Markov(commands.Cog): dummy = [] for i in range(10): 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):