Implement threshold writing to Redis and manticore ingesting from Redis

This commit is contained in:
2022-09-07 07:20:30 +01:00
parent 54ea5fa8e9
commit 5c3b338017
7 changed files with 184 additions and 14 deletions

View File

@@ -154,7 +154,7 @@ class IRCBot(IRCClient):
def event(self, **cast):
if "ts" not in cast.keys():
cast["ts"] = str(datetime.now().isoformat())
cast["ts"] = int(datetime.now().timestamp())
# remove odd stuff
for i in list(
@@ -832,7 +832,7 @@ class IRCBot(IRCClient):
self.event(type="kick", muser=kicker, channel=channel, msg=message, user=kickee)
def chanlessEvent(self, cast):
cast["ts"] = str(datetime.now().isoformat())
cast["ts"] = int(datetime.now().timestamp())
cast["nick"], cast["ident"], cast["host"] = parsen(cast["muser"])
if dedup(self.name, cast): # Needs to be kept self.name until the dedup
# function is converted to the new net, num