Closed x5tr closed 3 years ago
Oops. My caffeine obviously hasn't kicked in yet this morning. You wanted the MOTD. That's stored in the status object.
from mcstatus import MinecraftServer
server = MinecraftServer.lookup("example.org:1234")
status = server.status()
print(status.description)
It's also included in the query response as motd
.
How to get this?