Make crawler more efficient and implement configurable parameters

This commit is contained in:
2022-09-05 07:20:30 +01:00
parent f8fc5e1a1b
commit b8d2ecc009
3 changed files with 71 additions and 21 deletions

View File

@@ -35,7 +35,8 @@ class DiscordClient(discord.Client):
return
a = self.recurse_dict(message)
a["ts"] = a["time"].isoformat()
#a["ts"] = a["time"].isoformat()
a["ts"] = int(a["time"].timestamp())
del a["time"]
a["type"] = "msg"
a["src"] = "dis"