Guest User

Untitled

a guest
Oct 14th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. ---
  2. #remove comments that appear to contain game keys because they're probably posted accidentally
  3. #this doesn't stop keys being posted in body text of submissions or titles, because that is unlikely an accidental post
  4. #after the comment is removed, it would still be seen in the users profile if they don't delete it
  5. #if this rule is causing too many false positives, then a quickfix is the first body check, edit it to (includes, regex, case-sensitive), but that would not detect if someone posts a key with any lower case character
  6. #unfinished (.*?)(?<!http)([s?]://)([A-Z0-9]{4,5}?-)[A-Z0-9]{4,5}?-[A-Z0-9]{4,5}?
  7. type: comment
  8. body (includes, regex): ["([A-Z0-9]{4,5}?-)[A-Z0-9]{4,5}?-[A-Z0-9]{4,5}?"] #this regex matches most steam key formats
  9. ~body#z (includes): ["1234", "ABCD", "XYZ", "XXX"] #try to avoid matching common placeholders
  10. ~body#y (includes): ["http"] #ignore post if any links. Not perfect, a regex range check is better
  11. moderators_exempt: false #to make it easy for mods to test
  12. modmail: User /u/{{author}} posted something that looks like a game key, beginning {{match-2}}... in a public comment. To try to protect the user, automod has removed the comment, and a message was PM'd to the user to explain what happened.
  13. action: remove
  14. message: |
  15. Warning: You have apparently just posted a game key in a public comment, beginning {{match-2}}...
  16. That comment has been removed automatically to *try* to prevent the key being stolen.
  17. But your comment might still be visible on your user profile, so you should delete it.
  18. In future, we suggest you could use private messages or chat to send keys, so nobody else can see them.
  19.  
  20. ----
  21. If this message is mistaken, because you didn't post a key, then sorry and please [contact the moderators](https://www.reddit.com/message/compose?to=%2Fr%2FGameTrade).
  22. If you're certain that you want to post your key in public, then add some extra characters so bots can't steal it, e.g. 1234XXX-56789YYY-ABCDEZZZ
  23. If you wanted to just show someone the correct format for keys, use something like ####-####-#### or 1234-ABCD-XYZ or XXXX-XXXX-XXXX-XXXX and that won't be removed
  24.  
  25.  
  26. ---
Add Comment
Please, Sign In to add comment