使用 phpmsnclass 自动接受联系人
我目前正在使用 phpmsnclass 向 MSN 网络上的联系人发送消息。 但为了让我的“机器人”上的昵称起作用,我必须接受联系人发给我的“好友请求”。
从 debuginfo 中我发现文件 msn.clas.php 中的第 1672 行左右是一种自动接受功能。 但我无法使用具有此功能的 doLoop 函数,因为它永远不会结束。
那么是否有人有时间帮我检查一下这个,或者有另一个与 msn 合作的框架,可能会更好? 现在已经阅读了很多有关 MSN 网络的内容,但我还没有从自己的头脑中获得执行此操作的知识,我需要一些提示。
提前:谢谢
I'm currently using phpmsnclass to send messages to contacts on the MSN network. But to get the nickname on my "bot" to work I have to accept the "friend-request" my contacts has sent me.
From the debuginfo I have found that around line 1672 in the file msn.clas.php it's a kind of auto-accepting feature. But I cant use the doLoop function that has this feature cause it never ends.
So is there anyone who has time to check this out for me, or have another framework for working with msn that may be better on this? Have read about the MSN Network a lot now, but I haven't got the knowledge of doing this out of my own mind, I need some hints.
In advance: thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太确定你会如何处理这个问题,但你有没有想过分两部分进行检查? 一个在程序处于活动状态时运行,然后在程序处于活动状态时检查是否有人试图添加机器人的功能。 如果有人则继续自动接受。 但这需要响应时间。 我希望下面的伪代码虽然很粗糙,但至少能有所帮助。
I'm not quite sure of how you would go about this but have you thought of a two part check? One that runs while the program is active, and then while it it active check to see if the feature someone is trying to add the bot. If someone is then proceed to auto accept. This would require a response time though. I hope the pseudo-code below, as rough as it is, helps at least a bit.