Package gozerbot :: Module config
[hide private]
[frames] | no frames]

Module config

source code

this is where the config dict lives .. use pickle to persist config data .. use this pickle on start until the config file has changed


Copyright: this file is in the public domain

Classes [hide private]
  Config
config object is a dict
Functions [hide private]
 
handle_exception() source code
 
diffdict(dictfrom, dictto)
check for differences between two dicts
source code
 
writeconfig()
wtite default config file to datadir/config
source code
 
writeloadlist()
write loadlist to datadir
source code
Variables [hide private]
  ver = 'GOZERBOT 0.8.2-BETA'
  configtxt = '# config\n#\n#\n\n__copyright__ = \'this file is ...
  loadlist = '\ncore\nmisc\nirc\nnot\ngrep\nreverse\ncount\nchan...
  config = {'version': 'GOZERBOT 0.8.2-BETA', 'nolimiter': 0, 'd...
Variables Details [hide private]

configtxt

Value:
'''# config
#
#

__copyright__ = \'this file is in the public domain\'

# gozerdata dir umask
umask = 0700
...

loadlist

Value:
'''
core
misc
irc
not
grep
reverse
count
...

config

Value:
{'version': 'GOZERBOT 0.8.2-BETA', 'nolimiter': 0, 'dbenable': 0, 'par\
tyudp': 0, 'port': 6667, 'defaultcc': '!', 'dbtype': 'mysql', 'nick': \
'gozerbot', 'stripident': 1, 'allowedchars': [], 'ircdisable': 0, 'ipv\
6': 0, 'mainbotname': 'main', 'quitmsg': 'http://gozerbot.org', 'usern\
ame': 'gozerbot', 'udp': 0, 'realname': 'GOZERBOT', 'ssl': 0, 'logleve\
l': 100, 'server': 'localhost', 'jabberenable': 0, 'addonallow': 0, 'o\
wneruserhost': ['bart@127.0.0.1']}