chapter-tracker/README.md
pfych 3b3f66645e
All checks were successful
Build and Push Container / build (push) Successful in 37s
Clarify config in README
2025-04-20 14:22:05 +10:00

50 lines
1.2 KiB
Markdown

# Manga Update Tracker
Small Node script that tracks updates on MangaDex and sends a Discord webhook when a new chapter is released.
## Setup
```shell
pnpm install
pnpm run compile
```
### Config
Create a `config.json` in the root directory of the project, or alongside the script. It should look like the below example, you can add as many webhooks as you want. The Check Interval is how often the script will check for updates, in seconds.
```json
{
"checkInterval": 900,
"mangaByWebhook": {
"https://discord.com/api/webhooks/id/token": [
"9d3d3403-1a87-4737-9803-bc3d99db1424",
"cb1b1da5-9436-49f5-8a6b-a1689fb86d91",
"9a957884-d1be-48b1-a90c-85686aa16430"
],
"https://discord.com/api/webhooks/id2/token2": [
"9d3d3403-1a87-4737-9803-bc3d99db1424"
]
}
}
```
Once the config is set up you can run the script:
```shell
node .out/build.js # Or wherever the script is located
```
## Docker
You can also run the script in a Docker container:
```yaml
services:
checker:
image: git.pfy.ch/pfych/chapter-tracker:latest
volumes:
- "./config.json:/checker/config.json"
- "./mangaHistory.json:/checker/mangaHistory.json" # Required for keeping track of what's been sent
```