From 743183b76ec9689280600be44d72519e6a64e16c Mon Sep 17 00:00:00 2001 From: BadHappy <1196554262@qq.com> Date: Sun, 31 Dec 2023 09:29:03 +0800 Subject: [PATCH] F|9.28 --- connect.py | 4 ++-- module/hitokoto/__init__.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/connect.py b/connect.py index bce11f0..1dfb715 100644 --- a/connect.py +++ b/connect.py @@ -215,7 +215,7 @@ async def add_message(data: Dict[str, Any]): # else: # message = Message(content=f"此服务器空无一人",room_id=data['roomId']) - message = Message(content=f"此服务器有 {status.players.online} 个玩家在线",reply_to=reply,room_id=data['roomId']) + message = Message(content=f"此服务器有 {status.players.online} 个玩家在线", reply_to=reply, room_id=data['roomId']) await sio.emit('sendMessage', message.to_json()) @@ -224,7 +224,7 @@ async def add_message(data: Dict[str, Any]): server = JavaServer.lookup("192.168.1.6:25565") query = server.query() players = query.players.names - message = Message(content=f"此服务器当前在线玩家有 {players}",reply_to=reply,room_id=data['roomId']) + message = Message(content=f"此服务器当前在线玩家有 {players}", reply_to=reply, room_id=data['roomId']) await sio.emit('sendMessage', message.to_json()) diff --git a/module/hitokoto/__init__.py b/module/hitokoto/__init__.py index a37f290..445be9d 100644 --- a/module/hitokoto/__init__.py +++ b/module/hitokoto/__init__.py @@ -1,6 +1,7 @@ import requests import random + def hitokoto(ctypet): result_type = None