为什么 ICQ 机器人不发送消息?
#!/usr/bin/perl
use Net::OSCAR qw(:standard);
$uin="7777777";
$password="1234567";
$sender = "43214312";
$text = "test";
$oscar = Net::OSCAR -> new();
$oscar -> signon($uin, $password);
$oscar -> send_im($sender, $text);
$oscar -> signoff();
为什么不给我发消息?
#!/usr/bin/perl
use Net::OSCAR qw(:standard);
$uin="7777777";
$password="1234567";
$sender = "43214312";
$text = "test";
$oscar = Net::OSCAR -> new();
$oscar -> signon($uin, $password);
$oscar -> send_im($sender, $text);
$oscar -> signoff();
why dont send me message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不执行任何错误检查。这样做的话,问题就很明显了。
You don't do any error checking. Do that and the problem will be obvious.
我是这个软件的原始作者,哇 - 很惊讶它仍在使用。我已经很多年没有碰过它了。
简而言之,该软件使用 Net::Oscar,这是我多年来作为维护者接手的一个库以前,但在与 AOL 提起诉讼(针对 icqbot,而不是 oscar)之后..我失去了从事其中任何一个工作的欲望..我知道 net::oscar 库在多年后仍然被下载和使用,但我个人并没有这样做维护它,我不知道是否有人已经分叉了我的工作.. icqbot 软件本身运行在该库之上,所以只要它的方法有效.. 它就会工作.. 但我已经很多年没有更新 icqbot ..
坦白说,我很荣幸找到这个=)
I'm the ORIGINAL author of this software, wow - surprised it's still in use.. I've not touched it in years..
In short, the software uses Net::Oscar which is a library I took over as maintainer of years ago, but after a lawsuit with AOL ( over icqbot, not oscar ) .. I lost my desire to work on either.. I know that the net::oscar library was still downloaded and used for years after but I've not personally maintained it and I don't know if anyone has forked off of my work.. the icqbot software itself runs atop that library, so as long as it's methods work.. it will work.. but I've not updated icqbot in YEARS ..
Frankly I'm honored to have found this =)
我很惊讶我,作为作者..什么也没得到,而其他人却得到了 7 ..有趣:)但说真的,这个库非常过时,协议已经改变了..我不再维护这个软件..我没有兴趣回到它......
Ps。另一个人是对的,没有错误检查是一个坏主意..这就是黑客发生的方式..这只是草率的代码...没有冒犯,祝你好运...还有其他方法可以完成你现在想要的事情..: )对我来说,这是人工智能聊天机器人达到目的的一种手段。
I'm amazed that me, as the author.. got nothing and someone else got 7 .. amusing :) but seriously the library is extremely outdated and the protocol has changed.. I no longer maintain the software.. I have no interest in returning to it...
Ps. The other guy is right though, no error checking is a bad idea.. that's how hacks happen.. it's just sloppy code... no offence, good luck... there's other ways to accomplish what you wanted now days.. :) for me it was a means to an end for an AI chat bot.