FEATURE: bam for url in bio

- добавил бан за наличие ссылки в био
- добавил тест на такой бан
This commit is contained in:
kotolex
2024-01-15 08:54:49 +05:00
parent fbdd7ca244
commit 6f8d81f41b
4 changed files with 58 additions and 26 deletions
+4
View File
@@ -126,3 +126,7 @@ def fetch_rule(index: int) -> str:
return RULES_TEXT[index - 1]
else:
return "Пока не придумали"
def has_links(body: str) -> bool:
return "https://" in body or "http://" in body