join-req-fix2
This commit is contained in:
parent
4951d4edff
commit
804b2f5945
|
@ -35,7 +35,7 @@ async def messages_routing(msg, state):
|
||||||
toxic_score = detector(text)
|
toxic_score = detector(text)
|
||||||
logger.info(f'\ntext: {text}\ntoxic: {math.floor(toxic_score*100)}%')
|
logger.info(f'\ntext: {text}\ntoxic: {math.floor(toxic_score*100)}%')
|
||||||
if toxic_score > 0.81:
|
if toxic_score > 0.81:
|
||||||
if toxic_score > 0.95:
|
if toxic_score > 0.90:
|
||||||
await redis.set(f"removed:{uid}:{cid}:{mid}", text)
|
await redis.set(f"removed:{uid}:{cid}:{mid}", text)
|
||||||
await telegram_api(
|
await telegram_api(
|
||||||
"deleteMessage",
|
"deleteMessage",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user