Implement threshold writing to Redis and manticore ingesting from Redis
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user