summaryrefslogtreecommitdiff
path: root/ATRI/plugins/call-owner.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-04-13 23:38:31 +0800
committerKyomotoi <[email protected]>2021-04-13 23:38:31 +0800
commitd03636606de4c2f8c5c163f0e797325c7d182346 (patch)
tree74c7c2c7cbecf4c1949ce5c8d43aaafbdf3486fb /ATRI/plugins/call-owner.py
parent1b26f63a36467afd0405271a66b15071367ef1dd (diff)
downloadATRI-d03636606de4c2f8c5c163f0e797325c7d182346.tar.gz
ATRI-d03636606de4c2f8c5c163f0e797325c7d182346.tar.bz2
ATRI-d03636606de4c2f8c5c163f0e797325c7d182346.zip
✨🐛 小改动
新增:添加索取取消 新增:挖坑以图搜图 修复:发言屏蔽报错 修复:群消息记录写入类型错误
Diffstat (limited to 'ATRI/plugins/call-owner.py')
-rw-r--r--ATRI/plugins/call-owner.py11
1 files changed, 11 insertions, 0 deletions
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__)
[email protected]_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()