Ping discord webhook endpoints when a specified Manga releases a new chapter on MangaDex
Go to file
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
.gitea/workflows Adjust image priorities 2025-04-20 14:14:46 +10:00
src Added Docker 2025-04-20 13:46:47 +10:00
.eslintrc.js Init 2025-04-20 12:52:11 +10:00
.gitignore Init 2025-04-20 12:52:11 +10:00
docker-compose.yml Added Docker 2025-04-20 13:46:47 +10:00
Dockerfile Added Docker 2025-04-20 13:46:47 +10:00
package.json Init 2025-04-20 12:52:11 +10:00
pnpm-lock.yaml Init 2025-04-20 12:52:11 +10:00
README.md Clarify config in README 2025-04-20 14:22:05 +10:00
tsconfig.json Init 2025-04-20 12:52:11 +10:00

Manga Update Tracker

Small Node script that tracks updates on MangaDex and sends a Discord webhook when a new chapter is released.

Setup

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.

{
  "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:

node .out/build.js # Or wherever the script is located

Docker

You can also run the script in a Docker container:

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