Poll users messages specifcally
This commit is contained in:
parent
30a9d2321b
commit
93a290d1f9
@ -21,8 +21,9 @@ class Markov(commands.Cog):
|
||||
|
||||
# Get messages from passed in user
|
||||
authors_mesages = []
|
||||
for message in await ctx.history(limit=20000).flatten():
|
||||
if message.author.id == user.id and "https" not in message.content:
|
||||
for message in await user.history(limit=20000).flatten():
|
||||
# Dont add url's to the model, it will try to embed the pages and ruin the message
|
||||
if "https" not in message.content:
|
||||
authors_mesages.append(message.content)
|
||||
|
||||
# Make the model
|
||||
|
Loading…
x
Reference in New Issue
Block a user