From d03636606de4c2f8c5c163f0e797325c7d182346 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Tue, 13 Apr 2021 23:38:31 +0800 Subject: =?UTF-8?q?=E2=9C=A8=F0=9F=90=9B=20=E5=B0=8F=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增:添加索取取消 新增:挖坑以图搜图 修复:发言屏蔽报错 修复:群消息记录写入类型错误 --- ATRI/plugins/call-owner.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ATRI/plugins/call-owner.py') diff --git a/ATRI/plugins/call-owner.py b/ATRI/plugins/call-owner.py index 488e5a3..5384fdd 100644 --- a/ATRI/plugins/call-owner.py +++ b/ATRI/plugins/call-owner.py @@ -21,6 +21,17 @@ __doc__ = """ repo = sv.on_command(cmd="来杯红茶", docs=__doc__) +@repo.args_parser # type: ignore +async def _nsfw(bot: Bot, event: MessageEvent, state: T_State) -> None: + msg = str(event.message) + if msg == "算了": + await repo.finish('好吧') + + if not msg: + await repo.reject('话呢?') + else: + state['pic'] = msg + @repo.handle() async def _repo(bot: Bot, event: MessageEvent, state: T_State) -> None: msg = str(event.message).strip() -- cgit v1.2.3