Automod setting CQS as Post Flair

paschipasch

Newbie
Joined
Jan 21, 2024
Messages
21
Reaction score
4
Hi, i've created the following "Code" with AI (Claude 3.7) for Automod on Reddit.
When i try to safe the code Reddit says "Unsupported Media Type".

The Code:
---
# CQS as Flair with emojis - Extended version
type: submission
author:
~name: [AutoModerator, YourBotNamesIfAny]
is_contributor: false

# CQS "lowest"
priority: 1
contributor_quality: "lowest"
set_flair: [" CQS: Lowest", "cqs-lowest"]
comment: |
Hello u/{{author}},

Your Reddit Contributor Quality Score (CQS) is: **Lowest**

This is an automated message to help you track your account's status.

---
# CQS "low"
type: submission
priority: 2
contributor_quality: "low"
set_flair: ["⚠️ CQS: Low", "cqs-low"]
comment: |
Hello u/{{author}},

Your Reddit Contributor Quality Score (CQS) is: **Low** ⚠️

This is an automated message to help you track your account's status.

---
# CQS "moderate"
type: submission
priority: 3
contributor_quality: "moderate"
set_flair: [" CQS: Moderate", "cqs-moderate"]
comment: |
Hello u/{{author}},

Your Reddit Contributor Quality Score (CQS) is: **Moderate**

This is an automated message to help you track your account's status.

---
# CQS "high"
type: submission
priority: 4
contributor_quality: "high"
set_flair: ["✅ CQS: High", "cqs-high"]
comment: |
Hello u/{{author}},

Your Reddit Contributor Quality Score (CQS) is: **High** ✅

This is an automated message to help you track your account's status.

---
# CQS "highest"
type: submission
priority: 5
contributor_quality: "highest"
set_flair: [" CQS: Highest", "cqs-highest"]
comment: |
Hello u/{{author}},

Your Reddit Contributor Quality Score (CQS) is: **Highest**

This is an automated message to help you track your account's status.

What's wrong?

Thanks in advance!
 
Could be spacing or emoji throwing off the YAML parser, try stripping it down
 
Hi, i've created the following "Code" with AI (Claude 3.7) for Automod on Reddit.
When i try to safe the code Reddit says "Unsupported Media Type".

The Code:


What's wrong?

Thanks in advance!
hey i have created working cqs checker with post flair r/cqsreview

YAML:
---
# Highest CQS rule
type: submission
author:
    contributor_quality: "= highest" # Note: Exact match syntax for contributor_quality is not explicitly documented as a comparison type like < or >.
action: approve                     # Attempts to approve if the post is spam-filtered or reported (see documentation)
comment: |                          # Posts a comment
    Your Contributor Quality Score (CQS) is highest.
set_locked: true                    # Locks the submission's comments
set_flair: {template_id: "cdef91ba-22c3-11f0-9a4b-1aab3394fc65"} # Sets flair by template ID

---
# High CQS rule
type: submission
author:
    contributor_quality: "= high" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is high.
set_locked: true
set_flair: {template_id: "b8275d86-22c3-11f0-b002-9af40201274c"}

---
# Moderate CQS rule
type: submission
author:
    contributor_quality: "= moderate" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is moderate.
set_locked: true
set_flair: {template_id: "a05b888a-22c3-11f0-befe-3eb39e76c083"}

---
# Low CQS rule
type: submission
author:
    contributor_quality: "= low" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is low.
set_locked: true
set_flair: {template_id: "7bd52642-22c3-11f0-a962-22bde4733a09"}

---
# Lowest CQS rule
type: submission
author:
    contributor_quality: "= lowest" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is lowest.
set_locked: true
set_flair: {template_id: "87f173cc-22c3-11f0-b642-6e063f3a2c8f"}

you need to add template id of the flair do not use, do not forget to replace the template id
 
hey i have created working cqs checker with post flair r/cqsreview

YAML:
---
# Highest CQS rule
type: submission
author:
    contributor_quality: "= highest" # Note: Exact match syntax for contributor_quality is not explicitly documented as a comparison type like < or >.
action: approve                     # Attempts to approve if the post is spam-filtered or reported (see documentation)
comment: |                          # Posts a comment
    Your Contributor Quality Score (CQS) is highest.
set_locked: true                    # Locks the submission's comments
set_flair: {template_id: "cdef91ba-22c3-11f0-9a4b-1aab3394fc65"} # Sets flair by template ID

---
# High CQS rule
type: submission
author:
    contributor_quality: "= high" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is high.
set_locked: true
set_flair: {template_id: "b8275d86-22c3-11f0-b002-9af40201274c"}

---
# Moderate CQS rule
type: submission
author:
    contributor_quality: "= moderate" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is moderate.
set_locked: true
set_flair: {template_id: "a05b888a-22c3-11f0-befe-3eb39e76c083"}

---
# Low CQS rule
type: submission
author:
    contributor_quality: "= low" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is low.
set_locked: true
set_flair: {template_id: "7bd52642-22c3-11f0-a962-22bde4733a09"}

---
# Lowest CQS rule
type: submission
author:
    contributor_quality: "= lowest" # Note: Exact match syntax for contributor_quality is not explicitly documented.
action: approve
comment: |
    Your Contributor Quality Score (CQS) is lowest.
set_locked: true
set_flair: {template_id: "87f173cc-22c3-11f0-b642-6e063f3a2c8f"}

you need to add template id of the flair do not use, do not forget to replace the template id

Great, thank you!
What would I do if I want to check the CQS and post it as comment from AutoMod only (no Flair)?
 
Last edited:
Got it — you're likely trying to paste your Automoderator configuration (YAML format) into Reddit's Automod settings but getting the error "Unsupported Media Type."
 
Back
Top