Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

跟真寻自带的添加好友插件冲突 #3

Open
SuLiuming opened this issue Jul 21, 2023 · 1 comment
Open

跟真寻自带的添加好友插件冲突 #3

SuLiuming opened this issue Jul 21, 2023 · 1 comment

Comments

@SuLiuming
Copy link

自从装上米有社助手后 发现超级用户无法正常接收到 一份好友申请 之类的添加好友的请求 ;
小助手自带了一个好友添加.. 导致真寻原版插件失效

@SuLiuming
Copy link
Author

目前处理方式是删除user_check.py中的

friendRequest = on_request(priority=1, block=True)

@friendRequest.handle()
async def _(bot: Bot, event: RequestEvent):
command_start = list(get_driver().config.command_start)[0]
# 判断为加好友事件
if isinstance(event, FriendRequestEvent):
if _conf.preference.add_friend_accept:
logger.info(f'{_conf.preference.log_head}已添加好友{event.user_id}')
await bot.set_friend_add_request(flag=event.flag, approve=True)
if _conf.preference.add_friend_welcome:
# 等待腾讯服务器响应
await asyncio.sleep(1.5)
await bot.send_private_msg(user_id=event.user_id,
message=f'欢迎使用米游社小助手,请发送『{command_start}帮助』查看更多用法哦~')
# 判断为邀请进群事件
elif isinstance(event, GroupRequestEvent):
logger.info(f'{_conf.preference.log_head}已加入群聊 {event.group_id}')

其实删除这个文件也行,暂时不清楚会不会有其他的影响

ayakasuki pushed a commit that referenced this issue Aug 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant