FoxxMD
bed9a9682a
Add item is key in log on found
0.4.0
2021-06-23 15:17:45 -04:00
FoxxMD
d39ce13209
Big improvements for Attribution Rule
...
* Move most qualifier properties into criteria
* Allow filtering on specific domains and consolidate "use sub as reference" into a special string to use here
* Above also enables using rule on Comment
* Enable more submission type filtering options and allow multiple options (link, media, self -- or a combination of any)
* Provide count and percent ranges in results
* Provide domains and friendly tiles in results
2021-06-23 15:09:56 -04:00
FoxxMD
4bd25e53b0
Better formatting for logging errors
...
Don't erase the original message if there is one
2021-06-23 14:56:20 -04:00
FoxxMD
ac87d5acfa
Check if Activity is deleted before running checks
2021-06-23 14:55:45 -04:00
FoxxMD
0f541f1961
Try to fix attribution undefined issue on criteria results array having undefined index
2021-06-22 16:26:30 -04:00
FoxxMD
db2be949b4
Refactor polling to enable polling from multiple sources
...
* New polling sources: unmoderated and modqueue
* Can now poll from many sources
2021-06-22 14:47:20 -04:00
FoxxMD
8c6b18cf4d
Add optional subreddit nickname to help make logs more readable
2021-06-22 13:00:53 -04:00
FoxxMD
add4204304
Make check labels more concise
...
* Shorten prefix to 'CHK'
* Truncate check names to 25 characters
2021-06-22 13:00:35 -04:00
FoxxMD
927d4ef07e
Refactor recent activity to provide useful information on fail
2021-06-22 12:42:43 -04:00
FoxxMD
b8c12009ee
Refactor history rule to provide useful logging information on fail
2021-06-22 11:59:43 -04:00
FoxxMD
7f9b4ce6a0
Refactor repeat rule to provide useful logging information on fail
2021-06-22 11:29:07 -04:00
FoxxMD
ad8a668a08
Make pass/fail symbols constants
2021-06-22 11:28:37 -04:00
FoxxMD
84c5e97c92
Refactor Attribution so fail condition also logs useful information
2021-06-22 10:52:29 -04:00
FoxxMD
03b2cb36ab
Change pass/fail symbols so they aren't emojis
...
Makes logging more uniform
2021-06-22 10:52:01 -04:00
FoxxMD
93bdb89115
Shorten action logging label
2021-06-22 10:51:29 -04:00
FoxxMD
702e2ccccf
Shorten Rule labels
2021-06-22 10:47:51 -04:00
FoxxMD
631d67928d
Shorten kind for some rules to make logging more readable
2021-06-22 10:47:13 -04:00
FoxxMD
eea04344c0
Check for error timeout code
2021-06-21 22:53:50 -04:00
FoxxMD
7f29ade87b
Refactor results to make check complexity easier to visualize in log
...
* Differentiate rule results from rule set results
* Implement function to parse all results for check and print and/or PLUS triggered state for all rule/sets in check
2021-06-21 17:10:24 -04:00
FoxxMD
cced86381b
Fix minimum items for subthreshold
2021-06-21 13:57:31 -04:00
FoxxMD
01c575f2b2
Rename history criteria operator name to be consistent
2021-06-21 13:34:27 -04:00
FoxxMD
f1d04d4718
Fix regex named group
2021-06-21 13:33:49 -04:00
FoxxMD
6ca65079b3
Add author and item checks to Actions
...
So that Actions can be skipped based on item/author criteria
2021-06-21 13:00:45 -04:00
FoxxMD
73236e44ad
Add karma comparisons and verified check for author criteria
2021-06-21 12:02:33 -04:00
FoxxMD
4bef85e1e4
Refactor most thresholds to use comparison operators (like automod)
2021-06-21 11:40:04 -04:00
FoxxMD
532f6aa3d8
Fix recent activity default thresholds
2021-06-20 14:20:39 -04:00
FoxxMD
e1e5b26264
One more duration fix
2021-06-20 14:15:06 -04:00
FoxxMD
46a583e20a
Fix regex constant usage for duration
2021-06-20 14:01:00 -04:00
FoxxMD
24064dfe03
Refactor how activity window is parsed to use dayjs shorthand string
...
* Parse dayjs shorthand IE "90 days" alongside the rest of the activity types
* Update schema with clearer information on how activity window can be formed
2021-06-18 17:36:43 -04:00
FoxxMD
ad91901cc2
Refactor history criteria to use string regex parsing (like automod)
2021-06-18 16:33:13 -04:00
FoxxMD
58c51e56b1
Test Author account age using string comparison (like automod)
2021-06-18 13:52:52 -04:00
FoxxMD
9850ccb8f3
Fix dryrun usage for comment action
2021-06-17 15:04:11 -04:00
FoxxMD
79b82dab0f
Refactor footer to be configurable at subreddit and Action level
2021-06-17 14:43:22 -04:00
FoxxMD
9c059beb85
Add usernotes to content template render data and contextualize bot footer
2021-06-17 13:13:46 -04:00
FoxxMD
88be7d8836
Missed ban case in action factory
2021-06-16 22:42:46 -04:00
FoxxMD
20acc12460
Add footer to comment/ban content
...
Closes #5
0.3.0
2021-06-16 22:29:28 -04:00
FoxxMD
60c0569e21
Add missing actions
...
Closes #19
2021-06-16 22:04:44 -04:00
FoxxMD
879807390d
Add YAML as configuration language to readme
2021-06-16 21:30:43 -04:00
FoxxMD
08413dbe16
Implement YAML parsing
2021-06-16 21:27:48 -04:00
FoxxMD
75cbde8b8b
Improve logging levels and add end-run stats
...
* Increase some noisy log statements to verbose
* Display action summary on info level
* verbose -- Display run stats (checks, rules, actions) at end of event
* verbose -- Display reddit api stats (initial, current, used) at end of event
2021-06-16 13:31:37 -04:00
FoxxMD
3acf268313
Check notes length before trying to get current note
2021-06-16 12:30:28 -04:00
FoxxMD
97b9391f3b
Remove debug statement derp
2021-06-16 12:21:19 -04:00
FoxxMD
f8ec0d7ee0
Fix and/or condition logic for checks and rulesets
2021-06-16 12:20:38 -04:00
FoxxMD
0002c1bc11
Allow rules to be optional, increase startup logging, and change default log level
...
* Allow rules to be optional on json -- if no rules actions are run immediately after check passes author/item tests
* When verbose logging show much more detail about check stats, rules, and actions on startup
* Set verbose as default log level. New users should have more information of the box so they can understand how things work.
2021-06-16 11:38:45 -04:00
FoxxMD
a09f3fe4f1
Finally got action example working correctly
2021-06-16 10:39:27 -04:00
FoxxMD
daf66083d0
Schema documentation improvements
2021-06-16 10:33:36 -04:00
FoxxMD
7acd62d787
Refactor window criteria to actually work as described
2021-06-16 00:27:04 -04:00
FoxxMD
75889cc927
Add more error handling for reddit timeout issues
2021-06-15 17:05:14 -04:00
FoxxMD
db0440356c
Refactor author usage to be more universal and change name to match item behavior
...
* (BC) rename authors to authorIs to match itemIs -- since they have the same behavior
* Add author filter to Check so it matches usage of itemIs
2021-06-15 16:12:06 -04:00
FoxxMD
016952128c
Update documentation for Toolbox User Notes
2021-06-15 15:31:59 -04:00