Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-test-lint
name: build-lint
on: push
jobs:
build:
Expand All @@ -9,8 +9,9 @@ jobs:
- name: use node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
node-version: '22.x'
- run: npm install
- run: npx tsc --build --clean
- run: npx eslint
- run: npm run type-check
- run: npm run build
- run: npm run test
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
node_modules
.yarn
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.DS_Store
dist
.env
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Mopping extremely large chains can fail, if this happens please try again, ensur

This app was originally written by /u/FlyingLaserTurtle, with contributions from /u/ni5arga.

The app icon was designed by u/BravoFive141 - thanks!

For support for Comment Mop, please contact /u/fsv (the current maintainer) rather than either of the above users.

## Source code and license
Expand All @@ -18,6 +20,12 @@ Comment Mop is open source and licensed under the BSD Three Clause license. [The

## Change History

### v9.3.0

* "Success" message now tells you how many comments were locked/removed
* Add ability to configure a list of mods who may not use Comment Mop, such as for mods during a probationary period
* Update to latest Dev Platform version

### v9.2.3

* More reliable mopping of extremely large threads
Expand Down
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 66 additions & 4 deletions devvit.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,72 @@
{
"$schema": "https://developers.reddit.com/schema/config-file.v1.json",
"name": "comment-nuke",
"blocks": {
"entry": "src/main.ts",
"triggers": [
"onModAction"
"dev": {
"subreddit": "fsvsandbox"
},
"forms": {
"mopComments": "/internal/forms/mop-comments"
},
"marketingAssets": {
"icon": "assets/icon.png"
},
"menu": {
"items": [
{
"label": "Mop Comments",
"description": "Remove this comment and all child comments. This might take a few seconds to run.",
"location": "comment",
"forUserType": "moderator",
"endpoint": "/internal/menus/mop-comments"
},
{
"label": "Mop post comments",
"description": "Remove all comments on this post. This might take a few seconds to run.",
"location": "post",
"forUserType": "moderator",
"endpoint": "/internal/menus/mop-comments"
}
]
},
"server": {
"dir": "dist/server",
"entry": "index.cjs"
},
"settings": {
"subreddit": {
"remove": {
"label": "Default for Remove Comments",
"type": "boolean",
"defaultValue": true
},
"lock": {
"label": "Default for Lock Comments",
"type": "boolean",
"defaultValue": false
},
"skipDistinguished": {
"label": "Default for Skip Distinguished Comments",
"type": "boolean",
"defaultValue": true
},
"skipAlreadyActioned": {
"label": "Default for Skip Already Actioned Comments",
"helpText": "If set, comments already removed or locked (depending on what actions have been selected) won't get removed or locked again. Generally speaking, this is the desired behavior.",
"type": "boolean",
"defaultValue": true
},
"restrictedMods": {
"label": "Restricted Mods",
"type": "string",
"helpText": "A comma-separated list of mods who may not use Comment Mop. Not case sensitive."
}
}
},
"triggers": {
"onModAction": "/internal/triggers/mod-action"
},
"permissions": {
"reddit": true,
"redis": true
}
}
Loading
Loading