diff options
author | Kyomotoi <[email protected]> | 2021-07-08 22:09:00 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-07-08 22:09:00 +0800 |
commit | be2747e4d4b820ca0f1f988d3b77a628da26fe7b (patch) | |
tree | e1a59dd79ecd973a7d704568dcdc018f1f1b651a /ATRI/plugins/manage/modules/dormant.py | |
parent | a4e1b9d1581d756ef79ad063d1c0bd6b2fd13c1d (diff) | |
download | ATRI-be2747e4d4b820ca0f1f988d3b77a628da26fe7b.tar.gz ATRI-be2747e4d4b820ca0f1f988d3b77a628da26fe7b.tar.bz2 ATRI-be2747e4d4b820ca0f1f988d3b77a628da26fe7b.zip |
🔖♻️🐛🔧🔥📝 更新版本:YHN-001-A03
🔖 更新版本至:YHN-001-A03
✨ 新增插件:
- 涩图
- 闲聊(文爱
♻️ 重构:
- Service
- 所有插件
🐛 修复部分小bug
🔧 暂时移除部分设置
🔥 删除:
- 插件:nsfw、wife。日后加回
- 插件 essential 中部分内容
📝 更新README
Diffstat (limited to 'ATRI/plugins/manage/modules/dormant.py')
-rw-r--r-- | ATRI/plugins/manage/modules/dormant.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/ATRI/plugins/manage/modules/dormant.py b/ATRI/plugins/manage/modules/dormant.py deleted file mode 100644 index cd72d47..0000000 --- a/ATRI/plugins/manage/modules/dormant.py +++ /dev/null @@ -1,43 +0,0 @@ -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__ = """ -休眠,不处理任何信息 -权限组:维护者 -用法: - @ 休眠 -""" - -dormant_enabled = sv.on_command( - cmd="休眠", docs=__doc__, rule=to_bot(), permission=SUPERUSER -) - - -@dormant_enabled.handle() -async def _dormant_enabled(bot: Bot, event: MessageEvent) -> None: - sv.Dormant.control_dormant(True) - msg = "已进入休眠状态...期间咱不会回应任何人的消息哦..." - await dormant_enabled.finish(msg) - - -__doc__ = """ -苏醒,开始处理信息 -权限组:维护者 -用法: - @ 苏醒 -""" - -dormant_disabled = sv.on_command( - cmd="苏醒", docs=__doc__, rule=to_bot(), permission=SUPERUSER -) - - -@dormant_disabled.handle() -async def _dormant_disabled(bot: Bot, event: MessageEvent) -> None: - sv.Dormant.control_dormant(False) - msg = "唔...早上好...——哇哈哈" - await dormant_disabled.finish(msg) |