First off, I'm only a few days into learning python, so my apologies if the answer is pretty simple. My goal is to return the message from the Minecraft server upon entering a command into discord via a bot. In this scenario it's whitelisting. However, when the message is returned, it looks like this..
"Player is already whitelisted" but that last "character" is a square with a X in it. It returns more, but I've added the [:-1][:-2] to remove the last two characters. Then tried seeing if adding a space would essentially replace it. Although it does not work with this because it's not really a character? Thoughts?
if message.content.startswith('whitelist add'):
channel = client.get_channel(<Channel ID>)
await channel.send(rcon.command(message.content)[:-1][:-2]+" ", delete_after=3)
await asyncio.sleep(3)
await message.delete()