Skip to content

Instantly share code, notes, and snippets.

@Rapptz
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rapptz/86993da9732132d282dc to your computer and use it in GitHub Desktop.
Save Rapptz/86993da9732132d282dc to your computer and use it in GitHub Desktop.
type: comment
body (full-exact, regex, case-sensitive): '^[fF]lair:\s*(64|meta|all|ssb4|melee|brawl|projectm)$'
is_top_level: true
author:
is_submitter: true
message: |
Flair successfully applied on your post [{{title}}]({{permalink}}).
parent_submission:
set_flair: ["{{match-2}}", "{{match-2}}"]
overwrite_flair: true
action: remove
action_reason: "valid flair request"
moderators_exempt: false
---
# error handling
type: comment
body (full-exact, regex, case-sensitive): '^[fF]lair:\s*(?!64|meta|all|ssb4|melee|brawl|projectm)([^\s]*)$'
is_top_level: true
author:
is_submitter: true
message: |
Invalid flair given: {{match-2}}
Valid values are: meta all 64 ssb4 melee brawl projectm
Please post a new top level comment with the proper value. An example is: "flair: 64" without quotes.
Please note that the values must be in all lower-case.
action: remove
action_reason: "incorrect flair request"
moderators_exempt: false
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment