From 3ab4306ec67179a9d75ccc09b4953fabd8301bb2 Mon Sep 17 00:00:00 2001 From: Luke Robles <98352913+lrobles-iterable@users.noreply.github.com> Date: Mon, 19 Sep 2022 10:10:28 -0700 Subject: [PATCH] Send a temp message and also bump passes to 500 --- app/cogs/markov.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/cogs/markov.py b/app/cogs/markov.py index dca2d3e4..c74b08f1 100644 --- a/app/cogs/markov.py +++ b/app/cogs/markov.py @@ -11,6 +11,8 @@ class Markov(commands.Cog): @commands.command(name="markov") async def markov(self, ctx: commands.Context, user: discord.Member): + temp_message = await ctx.send("Just a moment, generating a markov chain") + # Get messages from passed in user authors_mesages = [] for message in await ctx.history(limit=15000).flatten(): @@ -23,8 +25,8 @@ class Markov(commands.Cog): dummy = [] for i in range(random.randint(3, 9)): - dummy.append(str(user_model.make_sentence(max_words=25, tries=100))) - await ctx.send( + dummy.append(str(user_model.make_sentence(max_words=25, tries=500))) + await temp_message.edit( "Heres a markov chain based on %s's shitposts" % user.mention + "\n\n" + " ".join(dummy)