tangled
alpha
login
or
join now
hailey.at
/
atproto-ruleset
3
fork
atom
A collection of Osprey rules for ATProto
3
fork
atom
overview
issues
pulls
pipelines
add elon handle rule
hailey.at
2 months ago
fd8772a1
f7ff6e6b
+26
2 changed files
expand all
collapse all
unified
split
rules
identity
elon_handle.sml
index.sml
+25
rules/identity/elon_handle.sml
···
1
1
+
Import(
2
2
+
rules=[
3
3
+
'models/base.sml',
4
4
+
'models/identity.sml',
5
5
+
],
6
6
+
)
7
7
+
8
8
+
_Gate = RegexMatch(target=IdentityEventHandle, pattern=r'^elon-?(musk|reeves).+\.bsky\.social$')
9
9
+
10
10
+
ElonHandleRule = Rule(
11
11
+
when_all=[_Gate],
12
12
+
description='Likely Elon spam handle',
13
13
+
)
14
14
+
15
15
+
WhenRules(
16
16
+
rules_any=[ElonHandleRule],
17
17
+
then=[
18
18
+
AtprotoLabel(
19
19
+
entity=UserId,
20
20
+
label='elon-handle',
21
21
+
comment='Lihkely Elon spam handle',
22
22
+
expiration_in_hours=None,
23
23
+
),
24
24
+
],
25
25
+
)
+1
rules/identity/index.sml
···
6
6
)
7
7
8
8
Require(rule='rules/identity/update_handle.sml')
9
9
+
Require(rule='rules/identity/elon_handle.sml')