Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hack to generate bot config lines for IRC channel announcements.
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 """\ | ||
supybot.networks.freenode.channels: %s | ||
""" % " ".join(CONFIG.config(group)['ircchannel'] for group in CONFIG.groups()), | ||
|
||
|
||
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), | ||
|
||
|
||
|