Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

GuilhermeFaga/MangaDex-discord-webhook-with-Google-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

MangaDex discord webhook with Google Script

When running the script the output will look like this:

For this to properly work it reads the RSS feed provided, then processes the data and the script then forwards it to Discord via a webhook.

It takes less than 15 minutes to setup everything! No need for downloads!

Some features

  • Send the updates to multiple discord servers
  • Easy manga filtering (whitelist)
  • Mention multiple roles on the manga whitelisted
  • It let you know if there's an update of the script available

Google Script setup

Prerequisites:

  • A Google account

Steps

  • Create a new Google Spreadsheet document (sheets.new)

  • Add these two sheets (we'll use them later)

  • Enter on the Script editor

  • Paste all the code of Code.gs on the newly created .gs.

  • Create a new script file named helper and paste all the code from helper.gs inside it.

  • Create a trigger

If you chose a different time interval, don't forget to change the first line on Code.gs:

MangaDex RSS

Discord webhook setup and sheet configuration

Prerequisites:

  • A Discord account
  • Have certain permissions on a server

Steps

  • On your discord server, go to Server Settings > Integrations and create a new webhook:
  • Copy the webhook url and paste it on the webhooks sheet

To change it's name and avatar just edit these lines on Code.gs:

Example:

To have the script send it to more than one webhook, just paste others in the same column

Manga filtering and role mentioning

  • Just add the mangas ids on the first column on the filters sheet

You can found the manga id here:

Example:

To use the role mentioning just copy the id of the role you want to be mentioned and paste it besides the manga id

Be sure to enable developer mode to be able to copy the role id

To mention more than one role per manga just repeat the manga id, useful for an "All mangas" role

After all of this is done you are good to go and have updates to your recently released manga chapters in Discord!