Skip to content

A Discord Bot written in .NET using DiscatSharp and HtmlAgilityPack to scrape MangaDex Forums to update you on the amount of new comments posted on the Forum.

License

Notifications You must be signed in to change notification settings

Velorexe/MangaDex-Comment-Notifier-Discord-Bot

Repository files navigation

MangaDex Forum Comment Notifier Discord Bot

A .NET Core 7.0 Console Application to update you on new comments on your MangaDex Forum!

Publish

Summary

mangadex-forum-comment-notifier-discord-bot is an in .NET 7.0 written Console Application that uses DiscatSharp and HtmlAgilityPack to scrape added MangaDex Forums to check if any of them contain new comments, and when that's the case, will send you an update through a specified Discord channel!

Why did I make this? Though MangaDex offers a beautiful API with lots of features, these kinds of API features are not available for the Forums. I love to hear from the community of MangaDex so I wanted to make an application where it'd be easy to keep track of when new comments are placed on the Forums.

Quick Start

Build the application using dotnet build MangaDexForumNotifier inside the cloned repository or use Visual Studio (Windows & Mac only) to compile a Debug or Release version.

Settings

To get started, you can run the application once and a settings.json file will be created. In here there are a few options to get the Discord bot up and running. The default settings.json will contain the fields and values below:

{
  "ForumUris": [],
  "ChannelId": 0,
  "ScanTimeoutInMinutes": 30,
  "InbetweenTimeoutInSeconds": 5,
  "DiscordBotToken": ""
}

If you quickly want to get started, you fill in the DiscordBotToken and the Discord Bot will start! Below is an explanation about the individual fields:

Field Description
ForumUris A collection of all the MangaDex Forum URI's being tracked. These will be written automatically once a new URI has been added.
ChannelId The Discord Channel ID to send the notifications to. Can be set using the [here command
ScanTimeoutInMinutes The amount of minutes in between scanning all the MangaDex Forum URI's
⚠️ Keep this at a reasonable time! Settings this at a lower value will increase the load on MangaDex's servers ⚠️
InbetweenTimeoutInSeconds The timeout between scanning individual Forum URI's. If you're encountering 404 errors, setting this higher could solve it.
DiscordBotToken The token of your Discord Bot. You need to create this yourself at the Discord Developer Portal.

Commands

The commands are quite simple:

Add

Adds new MangaDex Forum URI to the bot to track.

[add https://forums.mangadex.org/threads/manga-title-and-id/12345

Remove

Removes a MangaDex Forum URI if it's known to the bot.

[remove https://forums.mangadex.org/threads/manga-title-and-id/12345

Here

Sets the ChannelId for your bot to send messages in. All notifications about comments will be send in that specific channel.

[here

Refresh

Forces a scan of all the MangaDex Forum URI's

[refresh

Future

In the future I'd like to add support for some cool features!

  • Adding all MangaDex forums from a certain scanlation group
  • Automatically navigating to the next page if the comments exceed a single page

About

A Discord Bot written in .NET using DiscatSharp and HtmlAgilityPack to scrape MangaDex Forums to update you on the amount of new comments posted on the Forum.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published