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 o开发者_开发技巧ften "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?
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 is good.. You can create channels for yourself to test. Also check out this project called supybot, which is good for Python bots.
You can take the undernet ircu from http://coder-com.undernet.org and, before compiling it, add #define NOTHROTTLE
to ircd_defs.h
. This will remove any connection throttling so you can test your bot as much as you want.
精彩评论