2006-06-26 17:57:20 +00:00
|
|
|
###
|
2007-02-04 17:35:40 +00:00
|
|
|
# Copyright (c) 2006-2007 Dennis Kaarsemaker
|
2006-06-26 17:57:20 +00:00
|
|
|
#
|
2007-02-04 17:35:40 +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.
|
2006-06-26 17:57:20 +00:00
|
|
|
#
|
|
|
|
###
|
|
|
|
|
|
|
|
import supybot.conf as conf
|
|
|
|
import supybot.registry as registry
|
|
|
|
|
|
|
|
def configure(advanced):
|
|
|
|
from supybot.questions import expect, anything, something, yn
|
|
|
|
conf.registerPlugin('Encyclopedia', True)
|
|
|
|
|
|
|
|
Encyclopedia = conf.registerPlugin('Encyclopedia')
|
|
|
|
conf.registerChannelValue(Encyclopedia, 'database',
|
2008-08-07 11:37:25 +00:00
|
|
|
registry.String('ubuntu', 'Name of database to use'))
|
2008-05-10 15:13:26 +00:00
|
|
|
conf.registerChannelValue(Encyclopedia, 'relaychannel',
|
2006-09-28 12:35:24 +00:00
|
|
|
registry.String('#ubuntu-ops', 'Relay channel for unauthorized edits'))
|
2006-10-03 00:05:56 +00:00
|
|
|
conf.registerGlobalValue(Encyclopedia, 'notfoundmsg',
|
|
|
|
registry.String('Factoid %s not found', 'Reply when factoid isn\'t found'))
|
2007-03-14 20:50:20 +00:00
|
|
|
conf.registerChannelValue(Encyclopedia,'prefixchar',
|
2007-02-04 17:35:40 +00:00
|
|
|
registry.String('!','Prefix character for factoid display/editing'))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'datadir',
|
2008-10-22 17:31:40 +00:00
|
|
|
registry.String("", 'Path to dir containing factoid databases', private=True))
|
2008-05-10 15:13:26 +00:00
|
|
|
conf.registerChannelValue(Encyclopedia, 'alert',
|
2008-10-22 17:31:40 +00:00
|
|
|
registry.SpaceSeparatedListOfStrings(['ops', 'op', 'kops', 'calltheops'], 'factoid name(s) used for alerts', private=True))
|
2008-08-07 11:37:25 +00:00
|
|
|
conf.registerChannelValue(Encyclopedia, 'remotedb',
|
2009-03-10 05:16:09 +00:00
|
|
|
registry.String('http://ubottu.com/ubuntu.db', 'Remote location of the master database', private=True))
|
2008-10-22 17:31:40 +00:00
|
|
|
conf.registerChannelValue(Encyclopedia, 'ignores',
|
|
|
|
registry.SpaceSeparatedListOfStrings(['find', 'info'], 'factoid name(s) to ignore', private=True))
|
2009-11-16 16:43:34 +00:00
|
|
|
conf.registerChannelValue(Encyclopedia, 'privateNotFound',
|
|
|
|
registry.Boolean(False, "If set to True, send notfoundmsg in private rather than in the channel"))
|
|
|
|
|
2009-11-22 22:32:40 +00:00
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curStable',
|
|
|
|
registry.String('Karmic', "Current stable release"))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curStableLong',
|
|
|
|
registry.String('Karmic Koala', "Current stable release"))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curStableNum',
|
|
|
|
registry.String('9.10', "Current stable release"))
|
|
|
|
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curDevel',
|
|
|
|
registry.String('Lucid', "Current development release"))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curDevelLong',
|
|
|
|
registry.String('Lucid Lynx', "Current development release"))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curDevelNum',
|
|
|
|
registry.String('10.04', "Current development release"))
|
|
|
|
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curLTS',
|
|
|
|
registry.String('Hardy', "Current LTS release"))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curLTSLong',
|
|
|
|
registry.String('Hardy Herron', "Current LTS release"))
|
|
|
|
conf.registerGlobalValue(Encyclopedia, 'curLTSNum',
|
|
|
|
registry.String('8.04', "Current LTS release"))
|