I am using the readlines feature in python + discord.py however my value in my embed is surrounded by ['']. I'd like to remove it from my embed for obvious reasons
snipeduser = open("snipes/snipeduser.txt", "r").readlines()
snipedchannel = open("snipes/snipedchannel.txt", "r").readlines()
snipedserver = open("snipes/snipedserver.txt", "r").readlines()
snipedmessage = open("snipes/snipedmessage.txt", "r").readlines()
snipedmessagetime = open("snipes/snipedmessagetime.txt", "r").readlines()
embed = discord.Embed(title="Message Sniped!", color=0xE71D36)
embed.set_author(name=f"Message sent by {snipeduser}!")
embed.add_field(name=f"Channel",value=f"{snipedchannel}", inline=True)
embed.add_field(name=f"Server", value=f"{snipedserver}", inline=True)
embed.add_field(name=f"Message", value=f"{snipedmessage}", inline=False)
embed.set_footer(text=f"Time of Message Deletion {snipedmessagetime}")
await ctx.send(embed=embed)
Btw, the code is working fine except for the [''] problem
Here's an example;
Message sent by ['My Discord ID (My Discord Tag)']!
Message Sniped!
Channel
['My Private Channel ID (bot-testing)']
Server
['My private server']
Message
['test']
Time of Message Deletion
['2020-11-11 21:34:08.330000']