Still new to coding and have been searching but no luck in finding what I have done wrong. Trying to make a discord bot read a text file pick a line and send the message but I can't get \n working for line breaks.
if os.path.exists('text.txt'):
lines = open('text.txt', encoding='utf-8').read().splitlines()
text = random.choice(lines)
await client.send_message(member, text)
I have a text file called text.txt that has this inside
testing this now
testing
but when it sends the message I Don't get the line break. Everything is on the one line.