mirror of
https://github.com/FoxxMD/context-mod.git
synced 2026-05-11 03:00:42 -04:00
44 lines
1.6 KiB
Plaintext
44 lines
1.6 KiB
Plaintext
{
|
|
"checks": [
|
|
{
|
|
"name": "Free Karma On Submission Alert",
|
|
"description": "Check if author has posted this submission in 'freekarma' subreddits",
|
|
// check will run on a new submission in your subreddit and look at the Author of that submission
|
|
"kind": "submission",
|
|
"rules": [
|
|
{
|
|
"name": "freekarmasub",
|
|
"kind": "recentActivity",
|
|
// rule will only look at Author's submissions in these subreddits
|
|
"lookAt": "submissions",
|
|
// rule will only look at Author's submissions in these subreddits that have the same content (link) as the submission this event was made on
|
|
// In simpler terms -- rule will only check to see if the same link the author just posted is also posted in these subreddits
|
|
"useSubmissionAsReference":true,
|
|
"thresholds": [
|
|
{
|
|
// for all subreddits, if the number of activities (sub/comment) is equal to or greater than 1 then the rule is triggered
|
|
"totalCount": 1,
|
|
"subreddits": [
|
|
"DeFreeKarma",
|
|
"FreeKarma4U",
|
|
"FreeKarma4You",
|
|
"upvote"
|
|
]
|
|
}
|
|
],
|
|
// look at all of the Author's submissions in the last 7 days
|
|
"window": {
|
|
"days": 7
|
|
}
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"kind": "report",
|
|
"content": "Submission posted {{rules.freekarmasub.totalCount}} times in karma {{rules.freekarmasub.subCount}} subs over {{rules.freekarmasub.window}}: {{rules.freekarmasub.subSummary}}"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|