ignore messages that stat with !
This commit is contained in:
parent
f67d25481c
commit
b84cfafea4
@ -14,7 +14,11 @@ 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=50000).flatten():
|
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)
|
authors_mesages.append(message.content)
|
||||||
|
|
||||||
# Make the model
|
# Make the model
|
||||||
|
Loading…
x
Reference in New Issue
Block a user