
Any help on why would be greatly appreciated. I am unable to find a resolution as to why it is continually disconnecting. I have NGIRC running on the server, and it works if I connect from mIRC or any other IRC client. It should respond with "hello there" if any one in the channel sends anything. If working properly it should log into the appropriate channel, specified as the first arg in the command (e.g. It then disconnects and enters the clientConnectionLost and prints the error: Lost connection ([Failure instance: Traceback (failure with no frames): I added the startedConnection method in the client factory, which it is reaching and printing out the proper address:host. nnectTCP("localhost", 6667, MomBotFactory('#' + chan, Print "Could not connect: %s" % (reason,) Print "Lost connection (%s), reconnecting." % (reason,)ĭef clientConnectionFailed(self, connector, reason): format(str(connector.host),str(connector.port))ĭef clientConnectionLost(self, connector, reason): Self.msg(, prefix + "hello there")Ĭlass MomBotFactory(protocol.ClientFactory):ĭef _init_(self, channel, nickname='YourMomDotCom', chain_length=3, Msg = re.compile(self.nickname + "* ?", re.I).sub('', msg)

Print "Signed on as %s." % (self.nickname,) This is the simplified code (which should run) import sys

The bot that I am using is identical to the one found at Eric Florenzano's Blog. I am trying to implement an IRC Bot on a local server.
