diff options
author | Kyomotoi <[email protected]> | 2021-04-27 00:34:32 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-04-27 00:34:32 +0800 |
commit | 673bb9b7306fb71fdc794c435f2258fb8749a7fd (patch) | |
tree | 7e0855d89792fc3bdead10ec44aa023824e54806 /ATRI | |
parent | c063d3054e95eae55a59882b02a1af683a4bfc6f (diff) | |
download | ATRI-673bb9b7306fb71fdc794c435f2258fb8749a7fd.tar.gz ATRI-673bb9b7306fb71fdc794c435f2258fb8749a7fd.tar.bz2 ATRI-673bb9b7306fb71fdc794c435f2258fb8749a7fd.zip |
🐛 又一个bug
我是啥b
修复:睡眠与苏醒命令一致,未指定at bot才能触发
Diffstat (limited to 'ATRI')
-rw-r--r-- | ATRI/plugins/manage/modules/dormant.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ATRI/plugins/manage/modules/dormant.py b/ATRI/plugins/manage/modules/dormant.py index 68d14f9..d5ae321 100644 --- a/ATRI/plugins/manage/modules/dormant.py +++ b/ATRI/plugins/manage/modules/dormant.py @@ -2,6 +2,7 @@ from nonebot.permission import SUPERUSER from nonebot.adapters.cqhttp import Bot, MessageEvent from ATRI.service import Service as sv +from ATRI.rule import to_bot __doc__ = """ @@ -14,6 +15,7 @@ __doc__ = """ dormant_enabled = sv.on_command( cmd='休眠', docs=__doc__, + rule=to_bot(), permission=SUPERUSER ) @@ -32,8 +34,9 @@ __doc__ = """ """ dormant_disabled = sv.on_command( - cmd='休眠', + cmd='苏醒', docs=__doc__, + rule=to_bot(), permission=SUPERUSER ) |