decrease it to 20k messages
This commit is contained in:
parent
b84cfafea4
commit
ccd57d1e88
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user