F|9.28
This commit is contained in:
parent
ce78613394
commit
743183b76e
|
@ -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())
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import requests
|
||||
import random
|
||||
|
||||
|
||||
def hitokoto(ctypet):
|
||||
|
||||
result_type = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user