conf foo, setting the jid to sth with the botclass, presence support (doesn't work in MUC)

This commit is contained in:
Thorsten
2015-11-28 13:11:22 +01:00
parent 88d43f9df1
commit 277f4564a2
4 changed files with 40 additions and 16 deletions

View File

@@ -44,6 +44,16 @@ def conf_load():
return {}
def conf_set(key, value):
blob = conf_load()
blob[key] = value
conf_save(blob)
def conf_get(key):
blob = conf_load()
return blob.get(key)
Bucket = namedtuple("BucketConfig", ["history", "period", "max_hist_len"])
buckets = {