diff options
author | Kyomotoi <[email protected]> | 2020-10-25 16:33:33 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2020-10-25 16:33:33 +0800 |
commit | ebcb6cb4d5043759e634dcc1bd1a28573d650813 (patch) | |
tree | 565552f1e0789860d94558805c75d77c490772e1 /ATRI/plugins/plugin_pixiv | |
parent | a3838cec8eba90936a864f01ee44d3f93410af6e (diff) | |
download | ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.tar.gz ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.tar.bz2 ATRI-ebcb6cb4d5043759e634dcc1bd1a28573d650813.zip |
[Update]
Diffstat (limited to 'ATRI/plugins/plugin_pixiv')
-rw-r--r-- | ATRI/plugins/plugin_pixiv/__init__.py | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/ATRI/plugins/plugin_pixiv/__init__.py b/ATRI/plugins/plugin_pixiv/__init__.py index 5826b49..545e0f7 100644 --- a/ATRI/plugins/plugin_pixiv/__init__.py +++ b/ATRI/plugins/plugin_pixiv/__init__.py @@ -52,11 +52,7 @@ async def _(bot: Bot, event: Event, state: dict) -> None: else: await pixivSearchIMG.reject("请发送纯阿拉伯数字的pid") - await bot.send_msg( - user_id=state["user"], - group_id=state["group"], - message="别急!在搜索了!" - ) + await bot.send(event, "别急!在搜索了!") URL = f"https://api.imjad.cn/pixiv/v1/?type=illust&id={pid}" data = {} @@ -110,11 +106,7 @@ async def _(bot: Bot, event: Event, state: dict) -> None: else: await pixivSearchAuthor.reject("请发送纯阿拉伯数字的画师id") - await bot.send_msg( - user_id=state["user"], - group_id=state["group"], - message=f"别急!在搜索了!\n将展示画师[{author_id}]的前三项作品" - ) + await bot.send(event, f"别急!在搜索了!\n将展示画师[{author_id}]的前三项作品") URL = f"https://api.imjad.cn/pixiv/v1/?type=member_illust&id={author_id}" data = {} @@ -160,11 +152,7 @@ async def _(bot: Bot, event: Event, state: dict) -> None: if banList(user, group): if checkSwitch(plugin_name_2, group): - await bot.send_msg( - user_id=int(user), - group_id=int(group), - message="正在获取P站每日排行榜前五作品" - ) + await bot.send(event, "正在获取P站每日排行榜前五作品") URL = "https://api.imjad.cn/pixiv/v1/?type=rank" data = {} |