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

@@ -4,6 +4,7 @@ from os import getenv
import util
from sources.ch4 import Chan4
from sources.dis import DiscordClient
from sources.ingest import Ingest
# For development
# if not getenv("DISCORD_TOKEN", None):
@@ -29,7 +30,11 @@ async def main(loop):
log.info("Starting 4chan handler.")
chan = Chan4()
await chan.run()
loop.create_task(chan.run())
log.info("Starting ingest handler.")
ingest = Ingest()
loop.create_task(ingest.run())
loop = asyncio.get_event_loop()