From b3f9e7c8d9893431aa496ce749b23e15c3b4fe74 Mon Sep 17 00:00:00 2001 From: trueold89 Date: Sat, 13 Jul 2024 20:48:30 +0300 Subject: [PATCH] fixed bug of getting motd --- mcaio/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mcaio/client.py b/mcaio/client.py index 9634325..8d9a8b0 100644 --- a/mcaio/client.py +++ b/mcaio/client.py @@ -176,6 +176,8 @@ class AIOMCServer(IMCServer): self.clean() self._name = data["version"]["name"] self._motd = data["description"] + if isinstance(self._motd, dict): + self._motd = self._motd["text"] players = data["players"] self._count = int(players["online"]) self._max = int(players["max"])