From ce78613394f6a140182c6f5cefb762ae8f8be6dc Mon Sep 17 00:00:00 2001 From: BadHappy <1196554262@qq.com> Date: Sun, 31 Dec 2023 09:23:31 +0800 Subject: [PATCH] F|1231 --- connect.py | 2 +- module/minecraft_server/__init__.py | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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():