Reformat and set the net and channel for 4chan

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

View File

@@ -35,7 +35,7 @@ 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"