It never sends something because the if-statement is never true. You're comparing three lists of discord.Message
instances for three messages. Those are all different, so [message1] == [message2] == [message3]
will never be True
. Compare the values instead.
Also, .format(message)
doesn't do anything at all, and I'm not sure what you're expecting it to do. You should just remove it (or make it do something useful).
first = random.choice(tst)
second = random.choice(tst)
third = random.choice(tst)
await message.channel.send(str(first))
await message.channel.send(str(second))
await message.channel.send(str(third))
if first == second == third:
await message.channel.send("You win!")
Also,
if "!roll" in message.content.lower():
Consider using commands
instead of manually parsing everything. There's a basic example on how they work on the GitHub repo.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…