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