diff --git a/plugins/xiuxian/main.py b/plugins/xiuxian/main.py index 81d146c..04c369b 100644 --- a/plugins/xiuxian/main.py +++ b/plugins/xiuxian/main.py @@ -701,6 +701,7 @@ class XiuxianPlugin(MessagePluginInterface): "Cultivating": "闭关", "Unstable_Qi": "气息不稳", "Injured": "受伤保护", + "Expedition": "历练" }.get(status_code, str(status_code)) msg = ( f"📇 道号:{player.get('dao_name')}【{player.get('spirit_root')}】\n" @@ -734,6 +735,7 @@ class XiuxianPlugin(MessagePluginInterface): "Cultivating": "闭关", "Unstable_Qi": "气息不稳", "Injured": "受伤保护", + "Expedition": "历练" }.get(status, str(status)) client_msg_id, create_time, new_msg_id = await bot.send_text_message((roomid if roomid else sender), f"当前状态[{status_cn}]不可闭关", sender) if self.revoke: @@ -1097,7 +1099,7 @@ class XiuxianPlugin(MessagePluginInterface): player = self._get_player(sender, roomid or "") if not player: return False, "未注册" - if self.redis_db.check_rate_limited(sender, "__global__", "出门历练"): + if self.redis_db.check_rate_limited(sender, "__global__", cmd): client_msg_id, create_time, new_msg_id = await bot.send_text_message((roomid if roomid else sender), "⚠️ 历练冷却中,请稍候再试", sender) if self.revoke: self.revoke.add_message_to_revoke((roomid if roomid else sender), client_msg_id, create_time, new_msg_id, 5)