diff options
author | Kyomotoi <[email protected]> | 2022-10-17 23:46:00 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2022-10-17 23:46:00 +0800 |
commit | a8afa113cfef80237031916e20df44bc11df2270 (patch) | |
tree | c020a8eff1f024b1aa8ebc3fc4560246dd22fe06 /ATRI/plugins/repo.py | |
parent | 4adf588a06b1fb32c6e459dc6248b183313a241e (diff) | |
download | ATRI-a8afa113cfef80237031916e20df44bc11df2270.tar.gz ATRI-a8afa113cfef80237031916e20df44bc11df2270.tar.bz2 ATRI-a8afa113cfef80237031916e20df44bc11df2270.zip |
♻️ 跟进 service 的变化
Diffstat (limited to 'ATRI/plugins/repo.py')
-rw-r--r-- | ATRI/plugins/repo.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ATRI/plugins/repo.py b/ATRI/plugins/repo.py index c550f4b..dd67476 100644 --- a/ATRI/plugins/repo.py +++ b/ATRI/plugins/repo.py @@ -6,7 +6,6 @@ from nonebot.adapters.onebot.v11 import Bot, MessageEvent, Message from nonebot.adapters.onebot.v11.helpers import Cooldown from ATRI import conf -from ATRI.rule import is_in_service from ATRI.service import Service from ATRI.message import MessageBuilder @@ -24,7 +23,7 @@ _REPO_FORMAT = ( _REPO_FORMAT = MessageBuilder("来自用户{user}反馈:").text("{msg}").done() -repo = Service("反馈", "向维护者发送消息", rule=is_in_service("反馈")) +repo = Service("反馈").document("向维护者发送消息") reporter = repo.on_command("来杯红茶", "向维护者发送消息", aliases={"反馈", "报告"}) |