This commit is contained in:
parent
2eaefaa62f
commit
2e7b7ab2a4
|
@ -19,6 +19,9 @@ async def handle_reaction(notification: dict[str, str | int]):
|
||||||
|
|
||||||
async def reactions_worker():
|
async def reactions_worker():
|
||||||
async for message in redis.listen("reaction"):
|
async for message in redis.listen("reaction"):
|
||||||
msg = json.loads((await message).get("data", ""))
|
message = await message
|
||||||
if msg:
|
if message:
|
||||||
|
msg_data = message.get("data")
|
||||||
|
if msg_data:
|
||||||
|
msg = json.loads(msg_data)
|
||||||
await handle_reaction(msg)
|
await handle_reaction(msg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user