Discord.js is a pain to work with. The most updated code will be in the Java-Rework Branch If any of the code is usefull, feel free to copy/paste.
A Discrod bot that can look through your follows list on MangaDex to check if a manga is still being updated on the site.
This poject was made with: TypeScript, Mongoose, Discord.js
Table of Contents
Currently you will need to install this bot and run it locally.
Once some bugs are ironed out, you will be able to invite the bot.
After cloning the repo make sure you install all dependencies.
in your terminal, run
yarn
or
npm i
Once all dependencies are installed, find the .env.example and update the following fields;
DISCORD_TOKEN=<your discord bot token here>
Then rename the file to .env
Use
yarn dev
or
npm run dev
to start the dev enviroment.
This bot uses a web scraper to fetch the latest chapter of a given manga. It sources data from Manganato. If a manga isn't available or hasn't been updated on Manganato, it will be added to the Error array.
Depending on how big your follow list is, the bot can take a few minutes to run the /check-follow command. The bot also has a timeout function of 5 minutes. If your follow list is too long or if your internet connection is not great, you may trigger the timeout function and encounter an error.
Issues
- The MangaDex API sometimes returns an unexpected value, causing a manga to be filtered into the Error array
- The tinmeout function around the modal submit function (src>config>discord>index>line 132) causes the server to crash.
This application is covered by the MIT license.
If you have any questions, you can contact me from here