Skip to content

Commit

Permalink
Merge pull request #90 from MyXiaoNan/dev
Browse files Browse the repository at this point in the history
修复创建宗门时扣灵石问题
  • Loading branch information
PackageInstaller authored Jan 24, 2025
2 parents e82c6e1 + 605f315 commit 46193dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot_plugin_xiuxian_2/xiuxian/xiuxian_sect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ async def create_sect_(bot: Bot, event: GroupMessageEvent, args: Message = Comma
owner_idx = [k for k, v in jsondata.sect_config_data().items() if v.get("title", "") == "宗主"]
owner_position = int(owner_idx[0]) if len(owner_idx) == 1 else 0
sql_message.update_usr_sect(user_id, new_sect['sect_id'], owner_position)
sql_message.update_ls(user_id, XiuConfig().sect_min_level, 2)
sql_message.update_ls(user_id, XiuConfig().sect_create_cost, 2)
msg = f"恭喜{user_info['user_name']}道友创建宗门——{sect_name},宗门编号为{new_sect['sect_id']}。为道友贺!为仙道贺!"
else:
msg = f"道友确定要创建无名之宗门?还请三思。"
Expand Down

0 comments on commit 46193dd

Please sign in to comment.