From 673bb9b7306fb71fdc794c435f2258fb8749a7fd Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Tue, 27 Apr 2021 00:34:32 +0800 Subject: =?UTF-8?q?=F0=9F=90=9B=20=E5=8F=88=E4=B8=80=E4=B8=AAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 我是啥b 修复:睡眠与苏醒命令一致,未指定at bot才能触发 --- ATRI/plugins/manage/modules/dormant.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ATRI') 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 ) -- cgit v1.2.3