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 suzune rule
hailey.at
2 months ago
802ded03
36020c15
+43
2 changed files
expand all
collapse all
unified
split
rules
record
profile
index.sml
suzune.sml
+3
rules/record/profile/index.sml
···
15
15
Require(
16
16
rule='rules/record/profile/julie.sml',
17
17
)
18
18
+
Require(
19
19
+
rule='rules/record/profile/suzune.sml',
20
20
+
)
+40
rules/record/profile/suzune.sml
···
1
1
+
Import(
2
2
+
rules=[
3
3
+
'models/base.sml',
4
4
+
'models/record/base.sml',
5
5
+
'models/record/profile.sml',
6
6
+
],
7
7
+
)
8
8
+
9
9
+
SuzuneProfileRule = Rule(
10
10
+
when_all=[
11
11
+
StringContains(s=ProfileDescription, substrings=True, phrase='onlyfans'),
12
12
+
(StringContains(s=ProfileDisplayName, substrings=True, phrase='suzune') or
13
13
+
StringContains(s=Handle, substrings=True, phrase='suzune') or
14
14
+
StringContains(s=ProfileDescription, substrings=True, phrase='suzune')),
15
15
+
AccountAgeSecondsUnwrapped <= 12*Hour,
16
16
+
],
17
17
+
description='Suzune profile'
18
18
+
)
19
19
+
20
20
+
WhenRules(
21
21
+
rules_any=[SuzuneProfileRule],
22
22
+
then=[
23
23
+
AtprotoLabel(
24
24
+
entity=UserId,
25
25
+
label='general-spam',
26
26
+
comment='Suzune spam profile',
27
27
+
expiration_in_hours=None,
28
28
+
),
29
29
+
],
30
30
+
)
31
31
+
32
32
+
WhenRules(
33
33
+
rules_any=[SuzuneProfileRule],
34
34
+
then=[
35
35
+
AtprotoList(
36
36
+
did=UserId,
37
37
+
list_uri='at://did:plc:saslbwamakedc4h6c5bmshvz/app.bsky.graph.list/3mbgnj3f2id2l',
38
38
+
),
39
39
+
],
40
40
+
)