diff options
author | Richard Darst <rkd@zgib.net> | 2009-06-26 18:40:17 (GMT) |
---|---|---|
committer | Richard Darst <rkd@zgib.net> | 2009-06-26 18:40:17 (GMT) |
commit | 0a49a92f37b93ecb91457dd0bfeb782e8d5633fe (patch) | |
tree | 001843e190ce9ebfcf53237b9e829ecf28d75fd8 /config.py | |
parent | aac4ff07f0e90afca6ee1a5001f91d63dc1d3fa9 (diff) |
Initial checkin of supybot-based config method
- this simply proxies all string attributes of the Config class to the
supybot config namespace supybot.plugins.MeetBot.* When you adjust them
in supybot, the MeetBot methods see the changes.
- To enable, you must set supybot.plugins.MeetBot.enableSupybotBasedConfig
to True, and then reload MeetBot.
Then "config list supybot.plugins.MeetBot" and you'll see a bunch of
variables for you to change.
- To-do: think about supybot config stomping changes to defaults, and
implement channel-based config.
darcs-hash:20090626184017-82ea9-c24fcb02c54fd848de6ce5b212b1a48fcf42d970.gz
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -44,6 +44,10 @@ MeetBot = conf.registerPlugin('MeetBot') # This is where your configuration variables (if any) should go. For example: # conf.registerGlobalValue(MeetBot, 'someConfigVariableName', # registry.Boolean(False, """Help for someConfigVariableName.""")) +conf.registerGlobalValue(MeetBot, 'enableSupybotBasedConfig', + registry.Boolean(False, """Enable configuration via the supybot config """ + """mechanism.""")) + # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: |