toxic-debug

This commit is contained in:
Untone 2024-09-26 20:34:08 +03:00
parent a51e936f67
commit 4c0f24ff2e

View File

@ -33,7 +33,7 @@ async def messages_routing(msg, state):
mid = msg.get("message_id")
if text == '/toxic@welcomecenter_bot':
latest_toxic_message_id = await redis.get(f"toxic:{cid}")
toxic_score = get_average_toxic(msg)
toxic_score = await get_average_toxic(msg)
if reply_msg:
scoring_msg_id = reply_msg.get("message_id")
if not scoring_msg_id and latest_toxic_message_id: