Sometimes the easiest thing to do is check https://ifttt.com/ (If this then that) and see if your news source is supported. You can make a new account and link it through that site to allow it to post automatically.
Wouldn't it be something like:
type: link submission url (starts-with, regex): ['https?:\/\/store.steampowered.com\/app\/'] action: approve set_flair: "steam game" moderators_exempt: false
That should work if people use link posts. I've not tested it, though, so there may be an error or two.
The part below parent_submission
(i.e. whatever's in the parent_submission
subgroup) needs to be indented an additional 4 spaces. Also true for author
in that last rule. The same is true of the line after message: |
or comment: |
if it's a multi-line message/comment.
Fixed versions:
type: comment author: ["o2pb"] parent_submission: flair_text (regex): ['.'] flair_css_class (regex): ['.'] set_flair: ["", "replylink"] overwrite_flair: true
---
type: submission comment: | Reminder:
Please link flair your submission and update it once answered (eg. http://i.imgur.com/9tVLak2.gif).
For technical support, please <strong>Submit a Ticket</strong> on the Windscribe website. comment_stickied: true
---
type: comment
body (includes-word): ["thank you", "thanks", "answered", "[answered]"]
author:
is_submitter: true
parent_submission:
flair_css_class: "Unsolved"
set_flair: ["Solved", "Solved"]
overwrite_flair: true
message_subject: "Your /r/Windscribe Submission!"
message: |
Hi, I notice you thanked someone in the comment section of your post. I've automatically changed your post's flair to "Solved". If you feel that your question could use a bit more explanation, feel free to visit your post again and set the flair back to "Unsolved". Thanks!
Alright, copy and paste the following in your config (to replace what you have now), and make sure the indentation stays the same:
type: comment author: ["o2pb"] parent_submission: flair_text (regex): ['.'] flair_css_class (regex): ['.'] set_flair: ["", "replylink"] overwrite_flair: true
---
type: submission comment: | Reminder: If you need technical support in relation to your Windscribe account, please <strong>Submit a Ticket</strong> on the Windscribe website. comment_stickied: true
Let me know if the flair issue goes away.
I only comment one line at a time. I checked the automoderator documentation, and briefly checked the YAML documentation, and I don't see a multiline comment option.
It's regular expressions - basically telling AutoMod to search for a pattern rather than an exact sequence of characters.
http://regex101.com/r/uX7aU4/2
(there are more \
's in my comment above, which are necessary due to the way AutoMod interprets the wiki page before interpreting the regex)
That won't catch comments as url
and domain
apply only to submissions.
--- url+body "ebay(\.[a-z]{2,3}){1,2}/(itm/|link/\?nav=item)" modifiers: regex action: spam message: | Your [{{kind}}]({{permalink}}) has been automatically removed because it violates Rule II of /r/{{subreddit}}. This rule discourages the use of /r/{{subreddit}} for 'personal promotion'.
If you have a question about a particular item, please submit a screenshot. You are trying to sell something, go to /r/redditbay, /r/flipping or /r/ebaytreasures.
http://regex101.com/r/hN9iJ1/1 (the reason why you see \\
in the code above, but not in the regex101 link, is that AutoMod interprets everything through YAML first, and then through Python, so double-escapes are required.)
BUT! This is possible with the program IFTTT. I have something set up where anytime a post with a certain tag gets used it compiles it in a google doc for me. I know that you can set it up where anytime someone posts in your sub you can get notified. It might not be on reddit, because it will probably do to your personal email, but it's a work around. https://ifttt.com
Short answer: probably regex
Very long answer:
https://stackoverflow.com/questions/26543329/java-regex-to-match-vietnamese-chars
https://stackoverflow.com/questions/3819791/regex-in-vietnamese-characters
>having every mod set that up personally is less than ideal.
Depending on the action one person can set it up for multiple people. If you set ifttt to email you, you can also set a gmail filter to forward it to a bunch of other addresses.
If you guys use a private subreddit to talk you can have ifttt post in that sub. Or have it post on a twitter account you all follow, etc. Just look at the available channels: https://ifttt.com/channels
I get a 404 when I click on that page, so I'm not really sure. If it doesn't work, you could always manually create the recipe. For the "this" use the feeds channel and for the "that" use the reddit channel.
Great. Hey would you mind troubleshooting my code here... I know I'm close but...no cigar.
first: "May 29, 2016 6:00 PM -07" repeat: 1 week sticky: true title: "Weekly /r/BookGuys Free Books Listings!" text: | Every week, our good friend automoderator will be posting an updated list with FREE BOOK listings from across the internet. If you have a link to a collection of free books that you think we should add here, please message /u/ThePaulAlves with the link! ENJOY!
Top 100 Free Books On Kindle Store
800 Free eBooks for Kindle ---
type: submission message: | "Please remember to put an appropriate FLAIR on your post at /r/BookGuys
Just click FLAIR beneath your post title and select a flair!
Have a great day, Constant Reader!"
It's best to use UCT time - https://www.timeanddate.com/worldclock/timezone/utc
And the date you have set is tomorrow so no, this would not have posted yet - https://www.worldtimebuddy.com/pst-to-utc-converter
Nope, I don't think so. But at least every time you see that junk you'll know that someone made a wiki edit and you can look at the revisions page manually.
You could try badgering the admins for a more human readable feed for revisions.
There are also two other options:
use revision feeds for specific wiki pages you want to give extra attention instead of all revisions in the wiki. Example: https://www.reddit.com/r/subname/wiki/revisions/this_specific_page.rss
But that's only partially solves your use case, it doesn't contain the name of the person who made the edits, so you can't filter mods. If you also need that there's a second option:
use the moderation log feed - it contains both the name of the editor and the wiki page. With those present you can filter it any way you want.
The Feed channel on ifttt.com only has a "whitelist mode" keyword filter, if you want to just remove some items and keep everything else you can use this tool.
This is everything in my config
type: comment author: name: ["o2pb"] parent_submission: flair_text (regex): ['.'] flair_css_class (regex): ['.'] set_flair: ["", "replylink"] overwrite_flair: true
---
type: submission comment: | Reminder: If you need technical support in relation to your Windscribe account, please <strong>Submit a Ticket</strong> on the Windscribe website. comment_stickied: true
You can try something like this
~?\d{1,3}-?(h|ish|mo|min)?
That will catch stuff like 12h, 3-ish, 6mo, ~5, 127min
I suggest trying your expression on http://regex101.com to see what works/doesn't.
I always test my regular expressions using http://regex101.com, which breaks down each expression into steps and shows exactly how it's interpreted. It has an option for python, which is what AM uses.
Hi!
the regex you want is
so(y|i)(-*|\s?)bo(y|i)s?
which looks for a word that begins with "so", then has either a "y"or an "i", has an optional single whitespace or dash, then "bo", then either a "y" or an "i", then an optional single "s".
The parentheses are capturing groups, which I used to group some quantifiers instead of as capture groups.
I built and tested it on https://regexr.com/
I use https://regexr.com/ to test the regexes I write for automod
The opening /
and trailing /
(and whatever flag) won't be used by automod, so don't worry about those, and if you need automoderator to pay attention to capitalisation in your regex, use the (regex, case-sensitive)
assertion on the field being tested.
That website is useful to me, because it allows live testing of the regex against test data.
No worries, I know how regex can be confusing, the rule I posted works fine, and btw by "curved apostrophes" do you mean this ` ?
I have edited my rule to be like this is that what you mean?
What I'm trying to achieve is to catch posts like this:
title: >THIS IS my TITLE
thanks for the help so far.
created page called "automoderator-schedule"
double checked everything I can think of... here's the source. any help is greatly appreciated...
first: "February 3, 2016 9:04 PM" repeat: 1 week set_sticky: 1 title: "Feel Good Friday - Weekly Appreciation Thread" text: | "It is not happy people who are grateful, it is grateful people who are happy."
* Gratitude is a state of being in which you are aware of the gifts you have been given in your life. When we write down a couple of things we are grateful for each week, we will see our lives transform. Try to be positive, specific, and use the present tense.
>I am grateful to my Higher Power for my recovery, my sponsor, and my program phone calls.
* Nothing teaches us more in life than challenges. We can transform suffering into serenity when we are grateful for the challenges in our lives.
>I am grateful to my Higher Power that I was sick this week because it taught me that I can be successful in my recovery even when I am not feeling at my best.
* Expressing gratitude brings us in touch with the present moment. Even if we think we have nothing for which to be grateful, we can always be grateful for our breath.
Consider purchasing a gratitude journal like this one: <em>Gratitude Journal: A Daily Appreciation</em>