Skip to content

Commit dcc5f87

Browse files
committed
refactor(docs): Clean up flair docs
* Fix regex escaped characters * Use authorIs * make flair action type usage more clear
1 parent bc541d0 commit dcc5f87

File tree

2 files changed

+48
-51
lines changed

2 files changed

+48
-51
lines changed

docs/examples/onlyfansFlair/onlyfansFlair.json5

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@
44
"name": "Flair OF submitters",
55
"description": "Flair submission as OF if user does not have Verified flair and has certain keywords in their profile",
66
"kind": "submission",
7+
"authorIs": {
8+
"exclude": [
9+
{
10+
"flairCssClass": ["verified"]
11+
}
12+
]
13+
},
714
"rules": [
8-
{
9-
"name": "Exclude verified submitters",
10-
"kind": "author",
11-
"exclude": [
12-
{
13-
"flairCssClass": ["verified"]
14-
}
15-
]
16-
},
1715
{
1816
"name": "OnlyFans strings in description",
1917
"kind": "author",
2018
"include": [
2119
{
2220
"description": [
23-
"/(cashapp|allmylinks|linktr|onlyfans.com)/i",
21+
"/(cashapp|allmylinks|linktr|onlyfans\\.com)/i",
2422
"/(see|check|my|view) (out|of|onlyfans|kik|skype|insta|ig|profile|links)/i",
2523
"my links",
2624
"$"
@@ -36,7 +34,7 @@
3634
"flair_template_id": "put-your-onlyfans-user-flair-id-here"
3735
},
3836
{
39-
"name":"Set OF Creator flair",
37+
"name":"Set OF Creator SUBMISSION flair",
4038
"kind": "flair",
4139
"flair_template_id": "put-your-onlyfans-post-flair-id-here"
4240
}
@@ -60,11 +58,11 @@
6058
],
6159
"actions": [
6260
{
63-
"name":"Set OF Creator flair",
61+
"name":"Set OF Creator SUBMISSION flair",
6462
"kind": "flair",
6563
"flair_template_id": "put-your-onlyfans-post-flair-id-here"
6664
}
6765
]
6866
}
6967
]
70-
}
68+
}
Lines changed: 37 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
checks:
2-
- name: Flair OF submitters
3-
description: Flair submission as OF if user does not have Verified flair and has
4-
certain keywords in their profile
5-
kind: submission
6-
rules:
7-
- name: Exclude verified submitters
8-
kind: author
9-
exclude:
10-
- flairCssClass:
11-
- verified
12-
- name: OnlyFans strings in description
13-
kind: author
14-
include:
15-
- description:
16-
- "/(cashapp|allmylinks|linktr|onlyfans.com)/i"
17-
- "/(see|check|my|view) (out|of|onlyfans|kik|skype|insta|ig|profile|links)/i"
18-
- my links
19-
- "$"
20-
actions:
21-
- name: Set OnlyFans user flair
22-
kind: userflair
23-
flair_template_id: put-your-onlyfans-user-flair-id-here
24-
- name: Set OF Creator flair
25-
kind: flair
26-
flair_template_id: put-your-onlyfans-post-flair-id-here
27-
- name: Flair posts of OF submitters
28-
description: Flair submission as OnlyFans if submitter has OnlyFans userflair (override post flair set by submitter)
29-
kind: submission
30-
rules:
31-
- name: Include OF submitters
32-
kind: author
33-
include:
34-
- flairCssClass:
35-
- onlyfans
36-
actions:
37-
- name: Set OF Creator flair
38-
kind: flair
39-
flair_template_id: put-your-onlyfans-post-flair-id-here
2+
- name: Flair OF submitters
3+
description: Flair submission as OF if user does not have Verified flair and has
4+
certain keywords in their profile
5+
kind: submission
6+
authorIs:
7+
exclude:
8+
- flairCssClass:
9+
- verified
10+
rules:
11+
- name: OnlyFans strings in description
12+
kind: author
13+
include:
14+
- description:
15+
- '/(cashapp|allmylinks|linktr|onlyfans\.com)/i'
16+
- '/(see|check|my|view) (out|of|onlyfans|kik|skype|insta|ig|profile|links)/i'
17+
- my links
18+
- "$"
19+
actions:
20+
- name: Set OnlyFans user flair
21+
kind: userflair
22+
flair_template_id: put-your-onlyfans-user-flair-id-here
23+
- name: Set OF Creator SUBMISSION flair
24+
kind: flair
25+
flair_template_id: put-your-onlyfans-post-flair-id-here
26+
- name: Flair posts of OF submitters
27+
description: Flair submission as OnlyFans if submitter has OnlyFans userflair (override post flair set by submitter)
28+
kind: submission
29+
rules:
30+
- name: Include OF submitters
31+
kind: author
32+
include:
33+
- flairCssClass:
34+
- onlyfans
35+
actions:
36+
- name: Set OF Creator SUBMISSION flair
37+
kind: flair
38+
flair_template_id: put-your-onlyfans-post-flair-id-here

0 commit comments

Comments
 (0)