Search code examples
pythonircbots

Python IRC bot with support for plugins and not command only


I have just made a script in Python which will connect to my MySQL database every XX second and check for new posts on my forum. If there are any new posts, I would like to have the user's of my IRC channel notified. To do this I need to hook up my script with an IRC bot. I have been searching around to find an IRC bot which supports plugins which are not only called by commands (e.g. ".google example") as I would like my script to be running constantly and when new posts are found have the bot print a message.

Does anyone know of an IRC bot which would allow me to do that?


Solution

  • You could always take a look at Twisted, which is supposed to make it very easy for you to create your own IRC bot:

    http://twistedmatrix.com/documents/10.0.0/api/twisted.words.protocols.irc.IRC.html