You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance detection functionality and reporting options
- Added ability to remove posts with an optional removal message when AI-generated content is detected.
- Updated detection methods to return arrays of messages instead of single strings for better handling.
- Introduced new settings for auto-check actions and removal message placeholders in the configuration.
- Updated README to reflect changes in functionality and versioning.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,12 +28,18 @@ You can also set the app up to proactively check new posts, or posts approved ou
28
28
29
29
Consider setting a suitable account age and karma threshold to restrict this feature to accounts who are more likely to break rules. Posts from moderators will never be checked, and by default content from approved users will not be checked (but this can be changed).
30
30
31
-
If an image is detected as AI, a report like this will be made:
31
+
You can configure the app to either report the post (the default option) or remove with an optional removal reason.
removalMessage+=`\n\n*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/${subredditName}) if you have any questions or concerns.*`;
129
+
130
+
constnewComment=awaitpost.addComment({
131
+
text: removalMessage,
132
+
});
133
+
134
+
awaitPromise.all([
135
+
newComment.distinguish(true),
136
+
newComment.lock(),
137
+
]);
138
+
console.log(`Added removal comment to post ${post.id}`);
0 commit comments