Send a temp message and also bump passes to 500
This commit is contained in:
parent
4e02e31c1e
commit
3ab4306ec6
@ -11,6 +11,8 @@ class Markov(commands.Cog):
|
|||||||
@commands.command(name="markov")
|
@commands.command(name="markov")
|
||||||
async def markov(self, ctx: commands.Context, user: discord.Member):
|
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
|
# Get messages from passed in user
|
||||||
authors_mesages = []
|
authors_mesages = []
|
||||||
for message in await ctx.history(limit=15000).flatten():
|
for message in await ctx.history(limit=15000).flatten():
|
||||||
@ -23,8 +25,8 @@ 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=100)))
|
dummy.append(str(user_model.make_sentence(max_words=25, tries=500)))
|
||||||
await ctx.send(
|
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"
|
||||||
+ " ".join(dummy)
|
+ " ".join(dummy)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user