Skip to content

Commit

Permalink
Hack to generate bot config lines for IRC channel announcements.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Jul 26, 2014
1 parent 682dae9 commit 0058cbf
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions 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.