mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 : 修复开箱功能中的正则表达式错误
This commit is contained in:
parent
9fc0dbfc2b
commit
930ff5b09d
@ -112,28 +112,6 @@ __plugin_meta__ = PluginMetadata(
|
||||
)
|
||||
|
||||
|
||||
# cases_matcher_group = MatcherGroup(priority=5, permission=GROUP, block=True)
|
||||
|
||||
|
||||
# k_open_case = cases_matcher_group.on_command("开箱")
|
||||
# reload_count = cases_matcher_group.on_command("重置开箱", permission=SUPERUSER)
|
||||
# total_case_data = cases_matcher_group.on_command(
|
||||
# "我的开箱", aliases={"开箱统计", "开箱查询", "查询开箱"}
|
||||
# )
|
||||
# group_open_case_statistics = cases_matcher_group.on_command("群开箱统计")
|
||||
# open_multiple = cases_matcher_group.on_regex("(.*)连开箱(.*)?")
|
||||
# update_case = on_command(
|
||||
# "更新武器箱", aliases={"更新皮肤"}, priority=1, permission=SUPERUSER, block=True
|
||||
# )
|
||||
# update_case_image = on_command(
|
||||
# "更新武器箱图片", priority=1, permission=SUPERUSER, block=True
|
||||
# )
|
||||
# show_case = on_command("查看武器箱", priority=5, block=True)
|
||||
# my_knifes = on_command("我的金色", priority=1, permission=GROUP, block=True)
|
||||
# show_skin = on_command("查看皮肤", priority=5, block=True)
|
||||
# price_trends = on_command("价格趋势", priority=5, block=True)
|
||||
|
||||
|
||||
@_price_matcher.handle()
|
||||
async def _(
|
||||
session: EventSession,
|
||||
|
||||
@ -31,7 +31,7 @@ _multiple_matcher = on_alconna(
|
||||
)
|
||||
|
||||
_multiple_matcher.shortcut(
|
||||
r"(?P<num>\d)连开箱(?P<name>.*?)",
|
||||
r"(?P<num>\d+)连开箱(?P<name>.*?)",
|
||||
command="multiple-open",
|
||||
arguments=["{num}", "{name}"],
|
||||
prefix=True,
|
||||
|
||||
@ -319,7 +319,7 @@ async def open_multiple_case(
|
||||
Text(f"开启{case_name}武器箱\n剩余开箱次数:{over_count}\n"),
|
||||
Image(mark_image.pic2bytes()),
|
||||
Text(
|
||||
f"\nresult[:-1]\n箱子单价:{case_price}\n总获取金额:{total_price:.2f}\n总花费:{(17 + case_price) * num:.2f}"
|
||||
f"\n{result[:-1]}\n箱子单价:{case_price}\n总获取金额:{total_price:.2f}\n总花费:{(17 + case_price) * num:.2f}"
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user