drop messages to 15k and remove the check for bot commands
This commit is contained in:
parent
ccd57d1e88
commit
cc50384f20
@ -13,12 +13,8 @@ class Markov(commands.Cog):
|
|||||||
|
|
||||||
# Get messages from passed in user
|
# Get messages from passed in user
|
||||||
authors_mesages = []
|
authors_mesages = []
|
||||||
for message in await ctx.history(limit=20000).flatten():
|
for message in await ctx.history(limit=15000).flatten():
|
||||||
if (
|
if message.author.id == user.id and "https" not in message.content:
|
||||||
message.author.id == user.id
|
|
||||||
and "https" not in message.content
|
|
||||||
and message.content[0] != "!"
|
|
||||||
):
|
|
||||||
authors_mesages.append(message.content)
|
authors_mesages.append(message.content)
|
||||||
|
|
||||||
# Make the model
|
# Make the model
|
||||||
@ -33,8 +29,7 @@ class Markov(commands.Cog):
|
|||||||
for i in range(10):
|
for i in range(10):
|
||||||
dummy.append(str(user_model.make_sentence(max_words=25, tries=100)))
|
dummy.append(str(user_model.make_sentence(max_words=25, tries=100)))
|
||||||
await ctx.send(
|
await ctx.send(
|
||||||
"Heres a markov chain based on %s's shitposts"
|
"Heres a markov chain based on %s's shitposts" % user.mention
|
||||||
+ user.mention
|
|
||||||
+ "\n\n"
|
+ "\n\n"
|
||||||
+ " ".join(dummy)
|
+ " ".join(dummy)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user