https://github.com/sobotics/spotdetector
A bot designed to seek out and provide feedback about potentially bad reviews.
https://github.com/sobotics/spotdetector
chatbot moderation-bot
Last synced: 4 months ago
JSON representation
A bot designed to seek out and provide feedback about potentially bad reviews.
- Host: GitHub
- URL: https://github.com/sobotics/spotdetector
- Owner: SOBotics
- License: gpl-3.0
- Created: 2019-01-02T21:59:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-26T23:09:23.000Z (almost 3 years ago)
- Last Synced: 2026-02-06T00:23:11.149Z (4 months ago)
- Topics: chatbot, moderation-bot
- Language: HTML
- Homepage:
- Size: 1020 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SpotDetector

# About
[](https://github.com/SOBotics/SpotDetector/actions/workflows/nodejs.yml) 
A bot designed to seek out and provide feedback about potentially bad reviews.
# Check it out
> SpotDetector is currently inactive
You can find it in the [SOBotics Room](https://chat.stackoverflow.com/rooms/111347/sobotics) running under the user [SpotDetector](https://stackoverflow.com/users/10162108/spotdetector).
# Post Timelines
The bot has a built-in parser for post timelines:
| Field | Type | Description |
| ------------- | --------------------------------- | ----------------- |
| `deletions` | `Record` | deletion events |
| `reviews` | `Record` | review events |
| `undeletions` | `Record` | undeletion events |
| `userId` | `string` | post author id |
## Events
Each event type is a record of events keyed on event ids.
### Deletions
| Field | Type | Description |
| -------- | ------------------ | --------------------- |
| `by` | `string[]` | ids of deleting users |
| `date` | `string` | event date |
| `reason` | `PostDeleteReason` | deletion reason |
### Reviews
| Field | Type | Description |
| -------- | ------------------------ | -------------------- |
| `link` | `string` | review link |
| `result` | `PostReviewResult` | review outcome |
| `type` | `ReviewType` | review type |
| `votes` | `Record` | votes cast breakdown |
### Undeletions
| Field | Type | Description |
| -------- | -------------------- | --------------------- |
| `by` | `string[]` | ids of deleting users |
| `date` | `string` | event date |
| `reason` | `PostUndeleteReason` | deletion reason |
# Environment variables
| Variable | Type | Required? | Default | Description |
| -------------- | ------ | --------- | ------- | ------------------------------------ |
| API_KEY | string | yes | - | Stack Exchange API key |
| CHAT_EMAIL | string | yes | - | Chat account email address |
| CHAT_PASSWORD | string | yes | - | Chat account password |
| CHAT_ROOM | string | yes | - | Room id to report to |
| REPORT_DAYS | number | no | `8` | Number of days to report |
| REPORT_REVIEWS | number | no | `4` | Number of reviews to report |
| REPORT_USER | number | yes | - | Chat id of the user to report to |
| REVIEW_PAGES | number | no | `100` | Max number of review pages to scrape |
| STACKAPPS_POST | number | no | `8091` | StackApps post id |
| TENK_EMAIL | string | yes | - | Account email address (10K+ rep) |
| TENK_PASSWORD | string | yes | - | Account password (10K+ rep) |
# License
All code is licensed under [GPL-3.0-only](https://spdx.org/licenses/GPL-3.0-only.html) license.