Skip to content

Commit

Permalink
👌更改优先级
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art committed Jan 7, 2024
1 parent 5614ae8 commit 7bc2ad1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions src/plugins/ncm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,20 @@ async def music_reply_rule(event: Union[GroupMessageEvent, PrivateMessageEvent])
# ============Matcher=============
ncm_set = on_command("ncm",
rule=Rule(music_set_rule),
priority=1, block=False)
block=False)
'''功能设置'''
music_regex = on_regex("(song|url)\?id=([0-9]+)(|&)",
priority=2, block=False)
block=False)
'''歌曲id识别'''
playlist_regex = on_regex("playlist\?id=([0-9]+)&",
priority=2, block=False)
block=False)
'''歌单识别'''
music_reply = on_message(priority=2,
music_reply = on_message(
rule=Rule(music_reply_rule),
block=False)
'''回复下载'''
search = on_command("点歌",
rule=Rule(check_search),
priority=2, block=False)
rule=Rule(check_search), block=False)
'''点歌'''


Expand Down
2 changes: 1 addition & 1 deletion src/plugins/nonebot_plugin_report_manager/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .import blacklist

superusers = get_driver().config.superusers
report = on_command("反馈开发者", priority=50)
report = on_command("反馈开发者")


@report.handle()
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/today_in_history/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
hour = plugin_config.history_inform_time[0]["HOUR"]
minute = plugin_config.history_inform_time[0]["MINUTE"]

config_test = on_fullmatch("test", priority=1)
config_test = on_fullmatch("test")


@config_test.handle()
Expand All @@ -41,7 +41,7 @@ async def _(event: MessageEvent):
)


history_matcher = on_fullmatch("历史上的今天", priority=15)
history_matcher = on_fullmatch("历史上的今天")


@history_matcher.handle()
Expand Down

0 comments on commit 7bc2ad1

Please sign in to comment.