Dinnerbone / mcstatus

A Python class for checking the status of an enabled Minecraft server

Home Page:http://dinnerbone.com/minecraft/tools/status/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get this?

x5tr opened this issue · comments

commented

image
How to get this?

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.