测试 IRC 机器人
我正在使用 Twisted 库用 Python 编写一个 IRC 机器人。为了测试我的机器人,我需要多次连接到 IRC 网络,因为每次进行更改时我的机器人都需要重新启动。因此,我经常被这些网络“禁止”几分钟,因为我建立了很多联系。 这使得测试和编写机器人变得很烦人。有谁知道有更好的方法来测试机器人或任何不像 QuakeNet 这样限制连接数量的网络吗?
I am writing an IRC bot in Python using the Twisted library. To test my bot I need to connect several times to an IRC network as my bot requires a restart each time a change is made. Therefore I am often "banned" from these networks for a couple of minutes because I have made a lot of connections.
This makes it annoying testing and writing the bot. Does anyone know of a better way to test the bot or any network which isn't as restrict with the amount of connections as QuakeNet is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在本地计算机上安装 UnrealIRCd (它是一个 irc 服务器)并用它测试您的机器人。如果您一直重新连接,任何网络都会禁止您。另外,在本地服务器上工作将大大加快连接时间。
那里还有很多其他 irc 服务器。
超级机器人+1。
You can install UnrealIRCd (it's an irc server) on your local machine and test your bot with it. Any network will ban you if you keep reconnecting all the time. Plus working against a local server will speed up the connection times alot.
There are a bunch of other irc servers out there.
+1 for supy bot.
freenode很好..你可以自己创建频道来测试。另请查看这个名为 supybot 的项目,它非常适合 Python 机器人。
freenode is good.. You can create channels for yourself to test. Also check out this project called supybot, which is good for Python bots.
您可以从 http://coder-com.undernet.org 获取 undernet ircu,然后进行编译,将
#define NOTHROTTLE
添加到ircd_defs.h
。这将消除任何连接限制,以便您可以根据需要测试您的机器人。You can take the undernet ircu from http://coder-com.undernet.org and, before compiling it, add
#define NOTHROTTLE
toircd_defs.h
. This will remove any connection throttling so you can test your bot as much as you want.