Implement counting keyword events and a unified buffers system for when the master channel is unavailable
This commit is contained in:
@@ -97,6 +97,13 @@ class Key:
|
||||
if not obj.addr in MonitorPool:
|
||||
MonitorPool.append(obj.addr)
|
||||
success("Keyword monitoring enabled")
|
||||
if len(masterbuf) == 0:
|
||||
return
|
||||
rtrn = []
|
||||
for i in range(len(masterbuf)):
|
||||
rtrn.append(masterbuf.pop(0))
|
||||
saveConf("masterbuf")
|
||||
info("\n".join(rtrn))
|
||||
return
|
||||
else:
|
||||
failure("Keyword monitoring is already enabled")
|
||||
@@ -129,7 +136,7 @@ class Key:
|
||||
info("\n".join(exceptMap))
|
||||
return
|
||||
elif spl[1] == "master":
|
||||
info(" - ".join(config["Master"]))
|
||||
info(" - ".join([str(i) for i in config["Master"]]))
|
||||
return
|
||||
elif spl[1] == "monitor":
|
||||
if obj.addr in MonitorPool:
|
||||
|
||||
Reference in New Issue
Block a user