sopel

 sopel  is a Python based IRC bot.

IRC Bridge Example
The following setup will allow you to engage the #indieweb-dev chat from your own site by both backfeeding others' messages and POSSEing your own messages. See chat for prior efforts at microformat patterns.

$ pip install sopel $ sopel ...follow wizard to initialize, accept defaults...

should match your entry on chat-names. can be any valid nick -- it isn't used. Overwrite  with the following.

[core] nick = YourIRCName host = irc.freenode.net use_ssl = true port = 6697 owner = YourSiteName channels = #indieweb-dev enable = indiechatbridge

You implement  and. Install the following at.

from sopel.module import rule, interval

@rule(".*") def message_received(bot, trigger): entry = {"author": str(trigger.nick), "published": trigger.time, "content": str(trigger)} backfeed(entry)

@interval(.1) def posse(bot): message = posse_queue.pop if message: bot.msg("#indieweb-dev", message)

Start the bot.

$ sopel