Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.listen("on_message")
- async def on_message(message):
- if message.author == client.user:
- return
- messagesent = message.content
- phrases = open("D:/code/code/DIscord bot/botsearchphrase.txt")
- for line in phrases:
- if line.replace("\n", "") in messagesent:
- msg = 'REAL!'
- await message.reply(msg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement