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):