From 59027075e8ee61e3b399da11de606fec134ec4ce Mon Sep 17 00:00:00 2001 From: trueold89 Date: Sun, 7 Jul 2024 15:37:45 +0300 Subject: [PATCH] BF: Add 'motd' arg to cli --- mcaio/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mcaio/cli.py b/mcaio/cli.py index 56bea59..0ed5ef3 100644 --- a/mcaio/cli.py +++ b/mcaio/cli.py @@ -21,6 +21,10 @@ async def get_name(server: AIOMCServer) -> str: return await server.name +async def get_motd(server: AIOMCServer) -> str: + return await server.motd + + async def get_count(server: AIOMCServer) -> int: return await server.players_count @@ -40,6 +44,8 @@ async def action() -> None: out = get_max(server) case 'pcount': out = get_count(server) + case 'motd': + out = get_motd(server) case _: raise RuntimeError print(await out)