使用 phpmsnclass 自动接受联系人

发布于 2024-07-11 00:40:35 字数 390 浏览 5 评论 0原文

我目前正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

缺⑴份安定 2024-07-18 00:40:35

我不太确定你会如何处理这个问题,但你有没有想过分两部分进行检查? 一个在程序处于活动状态时运行,然后在程序处于活动状态时检查是否有人试图添加机器人的功能。 如果有人则继续自动接受。 但这需要响应时间。 我希望下面的伪代码虽然很粗糙,但至少能有所帮助。

while (program is running) 
   if (pendingRequest == true){
        doSomething
   }
}

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.

while (program is running) 
   if (pendingRequest == true){
        doSomething
   }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文