Files
PointsBot/README.md

80 lines
2.3 KiB
Markdown
Raw Normal View History

2020-01-15 11:07:13 -08:00
# PointsBot
2026-02-25 19:32:51 +00:00
## Overview
PointsBot is a Reddit bot that monitors posts in a subreddit, awards points to users who solve problems, and updates their flair to reflect their achievement levels. When the original poster marks a comment as solved (e.g., by replying "!Solved"), the bot awards a point to the solver, tracks their progress, and notifies them with a reply comment. Points accumulate to unlock new levels, and progress is visually represented with stars and progress bars.
## Features
- Monitors subreddit posts for solutions
- Awards points to users whose comments are marked as solved
- Updates user flair based on their point level
- Notifies users of their progress and next level
- Prevents awarding points to moderators
- Consolidates points into stars for easier progress tracking
## Installation (Docker Compose)
### Prerequisites
- [Docker](https://docs.docker.com/get-docker/)
- [Docker Compose](https://docs.docker.com/compose/install/)
2026-02-28 22:35:17 +00:00
### (Easy) Use a prebuilt image
1. Create a docker-compose.yml file in your chosen directoy, with the following contents:
```yaml
services:
pointsbot:
image: slfhstd.uk/slfhstd/pointsbot:latest
container_name: pointsbot
volumes:
- ./data:/root/.pointsbot
restart: unless-stopped
```
2. Configure the bot:
- Pre-create the config file using the sample config.
3. Start the bot:
```bash
docker-compose up -d
```
### (Advanced) Build your own image
2026-02-25 19:32:51 +00:00
1. Clone this repository:
```bash
2026-02-28 22:35:17 +00:00
git clone https://slfhstd.uk/slfhstd/PointsBot.git
cd PointsBot
2026-02-25 19:32:51 +00:00
```
2. Create a `docker-compose.yml` file in the project root with the following content:
```yaml
services:
pointsbot:
build: .
container_name: pointsbot
volumes:
2026-02-28 22:35:17 +00:00
- ./data:/root/.pointsbot
2026-02-25 19:32:51 +00:00
restart: unless-stopped
```
3. Configure the bot:
- Pre-create the config file using the sample config.
4. Build and start the bot:
```bash
docker-compose up --build -d
```
## Usage
2026-02-25 19:32:51 +00:00
- The bot will run in the background and monitor your subreddit.
- Configuration and logs are stored in the `.pointsbot` directory.
- To stop the bot:
```bash
docker-compose down
```
2020-01-15 22:54:05 -08:00
2020-01-15 11:07:13 -08:00
## License
2026-02-25 19:32:51 +00:00
MIT License. See LICENSE.md for details.
2020-01-15 11:07:13 -08:00
2026-02-25 19:32:51 +00:00
## Credits
Original author: Collin U. Rapp (u/GlipGlorp7)