toxic-debug
This commit is contained in:
parent
a51e936f67
commit
4c0f24ff2e
|
@ -33,7 +33,7 @@ async def messages_routing(msg, state):
|
||||||
mid = msg.get("message_id")
|
mid = msg.get("message_id")
|
||||||
if text == '/toxic@welcomecenter_bot':
|
if text == '/toxic@welcomecenter_bot':
|
||||||
latest_toxic_message_id = await redis.get(f"toxic:{cid}")
|
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:
|
if reply_msg:
|
||||||
scoring_msg_id = reply_msg.get("message_id")
|
scoring_msg_id = reply_msg.get("message_id")
|
||||||
if not scoring_msg_id and latest_toxic_message_id:
|
if not scoring_msg_id and latest_toxic_message_id:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user