Poll users messages specifcally

This commit is contained in:
Luke Robles 2023-07-06 10:20:13 -07:00
parent 4df876ce40
commit 9f97a07ae7

View File

@ -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