Skip to content
Permalink
Browse files

Hack to generate bot config lines for IRC channel announcements.

  • Loading branch information...
mithro committed Jul 26, 2014
1 parent 682dae9 commit 0058cbfbacee7e35bc37cc1739d1ac61b0a6f8c7
Showing with 43 additions and 0 deletions.
  1. +43 −0 tools/irclog2html/botconf.py
@@ -0,0 +1,43 @@
#! /usr/bin/python
# vim: set ts=4 sw=4 et sts=4 ai:

import os, sys
config_path = os.path.realpath(os.path.dirname(__file__)+"../..")
if config_path not in sys.path:
sys.path.append(config_path)
import config as common_config
CONFIG = common_config.config_load()

print
print
print

print """\
supybot.networks.freenode.channels: %s
""" % " ".join(CONFIG.config(group)['ircchannel'] for group in CONFIG.groups()),

print
print
print

print """\
# RSS Configuration
supybot.plugins.RSS.waitPeriod: 60
""",

for group in CONFIG.groups():
print """\
supybot.plugins.RSS.announce.%s: %s
""" % (CONFIG.config(group)['ircchannel'], group),

print """\
supybot.plugins.RSS.feeds: %s
""" % " ".join(CONFIG.groups()),

for group in CONFIG.groups():
print """\
supybot.plugins.RSS.feeds.%s: http://timvideos.us/%s/rss
""" % (group, group),



0 comments on commit 0058cbf

Please sign in to comment.
You can’t perform that action at this time.