init(). testing for a native bot using python-xmpp

This commit is contained in:
urlbot
2014-08-10 12:14:03 +02:00
commit dd951c31d0
3 changed files with 50 additions and 0 deletions

16
local_config.py.skel Normal file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/python
if '__main__' == __name__:
print '''don't try running this'''
exit(-1)
config = {}
config['jid'] = ''
config['password'] = ''
config['room'] = ''
config['nick'] = ''
def conf(val):
if val in config.keys():
return config[val]
return None