diff --git a/connect.py b/connect.py index de46eb8..bce11f0 100644 --- a/connect.py +++ b/connect.py @@ -207,7 +207,7 @@ async def add_message(data: Dict[str, Any]): # !!status elif content == '!!status': server = JavaServer.lookup("192.168.1.6:25565") - status=server.status() + status = server.status() # query = server.query() # if status.players.online != 0: diff --git a/module/minecraft_server/__init__.py b/module/minecraft_server/__init__.py index e69de29..91576ee 100644 --- a/module/minecraft_server/__init__.py +++ b/module/minecraft_server/__init__.py @@ -0,0 +1,17 @@ +import time +import random +import asyncio +import traceback + +from typing import Dict, List, Tuple, Any, Optional, Union, Literal + +import qtoml +import socketio +from colorama import Fore, Style +from nacl.signing import SigningKey +from lib_not_dr.types import Options +from mcstatus import JavaServer + +server = JavaServer.lookup("192.168.1.6:25565") + +def mcstatus():