Implement running Discord and 4chan gathering simultaneously
This commit is contained in:
16
db.py
Normal file
16
db.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from redis import StrictRedis
|
||||
|
||||
import util
|
||||
|
||||
log = util.get_logger("db")
|
||||
|
||||
|
||||
def store_message(msg):
|
||||
"""
|
||||
Store a message into Manticore
|
||||
:param msg: dict
|
||||
"""
|
||||
log.debug(f"store_message() {msg}")
|
||||
|
||||
|
||||
r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
|
||||
Reference in New Issue
Block a user