优化状态中文
This commit is contained in:
@@ -555,6 +555,13 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
self.revoke.add_message_to_revoke((roomid if roomid else sender), client_msg_id, create_time, new_msg_id, 5)
|
||||
return False, "未注册"
|
||||
player = self._check_status_update(player)
|
||||
status_code = player.get("status")
|
||||
status_cn = {
|
||||
"Idle": "空闲",
|
||||
"Cultivating": "闭关",
|
||||
"Unstable_Qi": "气息不稳",
|
||||
"Injured": "受伤保护",
|
||||
}.get(status_code, str(status_code))
|
||||
msg = (
|
||||
f"🧙♂️ 我的状态\n"
|
||||
f"道号:{player.get('dao_name')}\n"
|
||||
@@ -562,7 +569,7 @@ class XiuxianPlugin(MessagePluginInterface):
|
||||
f"灵根:{player.get('spirit_root')}\n"
|
||||
f"修为:{player.get('cultivation_points')}\n"
|
||||
f"灵石:{player.get('spirit_stone')}\n"
|
||||
f"状态:{player.get('status')}\n"
|
||||
f"状态:{status_cn}\n"
|
||||
)
|
||||
client_msg_id, create_time, new_msg_id = await bot.send_text_message((roomid if roomid else sender), msg, sender)
|
||||
if self.revoke:
|
||||
|
||||
Reference in New Issue
Block a user