Files
urlbot-native/local_config.py.skel

27 lines
546 B
Plaintext
Raw Normal View History

2014-09-14 12:26:39 +02:00
#!/usr/bin/python
2014-09-27 05:59:35 +02:00
import time
2014-09-14 12:26:39 +02:00
if '__main__' == __name__:
print '''this is a config file, which is not meant to be executed'''
exit(-1)
config = {}
config['src-url'] = 'FIXME'
config['bot_user'] = 'urlbot'
config['bot_owner'] = 'FIXME'
2014-09-27 05:56:39 +02:00
config['hist_max_count'] = 5
config['hist_max_time'] = 10 * 60
2014-09-27 05:59:35 +02:00
config['uptime'] = -time.time()
# the "dice" feature will use more efficient random data (0) for given users
config['enhanced-random-user'] = ( 'FIXME', 'FIXME' )
2014-09-14 12:26:39 +02:00
def conf(val):
if val in config.keys():
return config[val]
return None