Ping discord webhook endpoints when a specified Manga releases a new chapter on MangaDex
Go to file
pfych c97e4081d0
All checks were successful
Build and Push Container / build (push) Successful in 38s
Create a latest & sha tag
2025-04-20 14:12:10 +10:00
.gitea/workflows Create a latest & sha tag 2025-04-20 14:12:10 +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 Added Docker 2025-04-20 13:46:47 +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": {
    "DISCORD_WEBHOOK_URL_1": [
      "MANGADEX_MANGA_ID_1",
      "MANGADEX_MANGA_ID_2",
      "MANGADEX_MANGA_ID_3"
    ],
    "DISCORD_WEBHOOK_URL_2": [
      "MANGADEX_MANGA_ID_4",
      "MANGADEX_MANGA_ID_5"
    ]
  }
}

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"