Skip to content

A Google Script which sends discord webhook notifications on manga updates.

Notifications You must be signed in to change notification settings

vv4t/mangadex-webhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Updated MangaDex discord webhook with Google Script

Inspired GuilhermeFaga's version but implemented in MangaDex's v5 API.

A simple Google Script to which can be set up in a few minutes (no downloads required). This allows for automatic chapter updates from MangaDex to be forwarded to Discord via Webhooks.

The output in Discord:

Example

Updates

  • 13.02.2024 Removed account integration to link follow feed since /user/auth/ has been deprecated. You should only use feeds.

Installation

Prerequisites

  • MangaDex Account
  • Google Account

Steps

Creating an MDList

  • Log into your account and create a public MDList

MDList

  • Add manga to be tracked to the list through the Add to MDList on the manga page

Add to MDList

Creating a Google Sheets

  • Create a Google Sheets
  • Create two sheets feeds and webhooks (Case sensitive)

Add sheet

  • Copy the id of your list (from the url)

id

  • In the feeds sheet, paste the id in the first column (multiple feeds can be pasted; also note, columns other than the first can have any text, useful for identifying which ID is which)

sneed feed

  • Open App Script through Extensions -> App Script

App Script

Code gs

  • Create a new Script called helper.gs
  • Paste in the code from helper.gs
  • Create a new Trigger

Triggers

  • With the following settings: function: main, event source: Time-driven, type of time: Minutes timer, Select minute interval: Every 10 minutes

settings

Creating a Discord WebHook

  • Open server settings

server settings

  • Go to Integrations -> Webhooks -> New Webhook and copy its url

new webhook

webhooks sheets

Custom Messages

  • Simply add the text you want the specified webhook to send in the cel of the 2nd column

custom text

  • To ping a certain role, put the custom text as <@&role_id> where role_id is the ID of the role
  • The ID of a role can be obtained by right clicking the role and clicking Copy ID
  • This will require Discord Developer Mode

Customisation

  • At the moment only the Trigger Interval and Target Language can be changed through modifying the script

Target Language

  • Modifying line 5 of Code.gs will change the target language which the script detects

lang

  • LANGUAGE can be changed to any of the values specified by MangaDex's API

possible lang

Trigger Interval

  • Modifying line 2 of Code.gs will change the interval at which new chapters are polled (in minutes) TRIGGER_INTERVAL
  • However, the trigger interval should also be modified in the Google Script script image

About

A Google Script which sends discord webhook notifications on manga updates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published