ignore messages that stat with !
This commit is contained in:
parent
50b0d7fb78
commit
9bdbe7caa1
@ -14,7 +14,11 @@ class Markov(commands.Cog):
|
||||
# Get messages from passed in user
|
||||
authors_mesages = []
|
||||
for message in await ctx.history(limit=50000).flatten():
|
||||
if message.author.id == user.id and "https" not in message.content:
|
||||
if (
|
||||
message.author.id == user.id
|
||||
and "https" not in message.content
|
||||
and message.content[0] != "!"
|
||||
):
|
||||
authors_mesages.append(message.content)
|
||||
|
||||
# Make the model
|
||||
|
Loading…
x
Reference in New Issue
Block a user