2006-06-26 17:57:20 +00:00
|
|
|
###
|
2007-09-17 23:43:05 +00:00
|
|
|
# Copyright (c) 2005-2007 Dennis Kaarsemaker
|
2006-06-26 17:57:20 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of version 2 of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
###
|
|
|
|
|
|
|
|
import supybot.conf as conf
|
|
|
|
import supybot.registry as registry
|
|
|
|
|
|
|
|
def configure(advanced):
|
|
|
|
from supybot.questions import expect, anything, something, yn
|
|
|
|
conf.registerPlugin('Webcal', True)
|
|
|
|
|
|
|
|
Webcal = conf.registerPlugin('Webcal')
|
|
|
|
conf.registerChannelValue(conf.supybot.plugins.Webcal, 'url',
|
|
|
|
registry.String('',"""Webcal URL for the channel"""))
|
2006-06-29 21:28:13 +00:00
|
|
|
conf.registerChannelValue(conf.supybot.plugins.Webcal, 'filter',
|
|
|
|
registry.String('',"""What to filter on in the ical feed"""))
|
2006-06-26 17:57:20 +00:00
|
|
|
conf.registerChannelValue(conf.supybot.plugins.Webcal, 'topic',
|
|
|
|
registry.String('',"""Topic template"""))
|
2006-07-12 08:53:55 +00:00
|
|
|
conf.registerChannelValue(conf.supybot.plugins.Webcal, 'doTopic',
|
|
|
|
registry.Boolean(False,"""Whether to manage the topic"""))
|
2006-06-26 17:57:20 +00:00
|
|
|
conf.registerGlobalValue(conf.supybot.plugins.Webcal, 'defaultChannel',
|
2007-09-17 23:43:05 +00:00
|
|
|
registry.String('',"""Default channel to determine schedule for /msg replies"""))
|
2008-05-06 16:22:00 +00:00
|
|
|
conf.registerGlobalValue(conf.supybot.plugins.Webcal, 'tzUrl',
|
|
|
|
registry.String('', """URL to the list of timezones supported by the Webcal plugin"""))
|