tangled
alpha
login
or
join now
edavis.dev
/
bsky-tools
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
sdw: search for posts that get right to the point
Eric Davis
2 years ago
4b6923a1
4066b962
+1
-1
1 changed file
expand all
collapse all
unified
split
feeds
sevendirtywords.py
+1
-1
feeds/sevendirtywords.py
···
34
return
35
36
# https://en.wikipedia.org/wiki/Seven_dirty_words
37
-
if re.search(r'\b(shit|piss|fuck|cunt|cocksucker|motherfucker|tits)\b', record['text'], re.I) is not None:
38
repo = commit['did']
39
rkey = commit['rkey']
40
post_uri = f'at://{repo}/app.bsky.feed.post/{rkey}'
···
34
return
35
36
# https://en.wikipedia.org/wiki/Seven_dirty_words
37
+
if re.search(r'^.{0,16}\b(shit|shitting|piss|fuck|fucking|cunt|cocksucker|motherfucker|tits)\b.{0,16}$', record['text'], re.I) is not None:
38
repo = commit['did']
39
rkey = commit['rkey']
40
post_uri = f'at://{repo}/app.bsky.feed.post/{rkey}'