Ljzd-PRO / nonebot-plugin-mystool

QQ聊天、频道机器人插件 | 米游社工具-每日米游币任务、游戏签到、商品兑换、免抓包登录、原神崩铁便笺提醒
https://pypi.org/project/nonebot-plugin-mystool
MIT License
420 stars 52 forks source link

【bug】微博签到无法关闭 #327

Closed Sakamakiiizayoi closed 4 months ago

Sakamakiiizayoi commented 4 months ago

image 关闭微博签到兑换后,每日任务执行1小时候后还是会执行微博签到

dontdot commented 4 months ago

忘记给签到函数加上开关了,手动修改文件就可以了

Details

https://github.com/Ljzd-PRO/nonebot-plugin-mystool/blob/b8377d240de800642fe4b85b74a9e92c1016c43a/src/nonebot_plugin_mystool/command/plan.py#L675 ```python async def weibo_sign_check(user: UserData, user_ids: Iterable[str], matcher: Matcher = None): """ :param user: 用户对象 :param user_ids: 发送通知的所有用户ID :param matcher: nonebot ``Matcher`` """ if user.enable_weibo: for user_data in user.weibo: msg = await WeiboSign.sign(user, user_data) if matcher: await matcher.send(message=msg) else: for user_id in user_ids: await send_private_msg(user_id=user_id, message=msg) else: message = "未开启微博自动签到功能" if matcher: await matcher.send(message) ```