This shitty, quick and dirty program can be executed to check a given manga/novel on the foxahlic page for new chapters.
For this you have to define a config.toml
file, which lets you define the manga/novels and the discord webhook you want to trigger.
The program uses the manga-update RSS feed of foxaholic that can be found under https://www.foxaholic.com/feed/manga-chapters
.
The URL_Prefix
requested in the .toml
for each Manga
is just stimply the first part of the links to a given chapter that is always the same for the same novel.
f.e. https://www.foxaholic.com/novel/yuushou-ln/v4c1/
is a chapter URL, the prefix we want is https://www.foxaholic.com/novel/yuushou-ln
because this part is for all chapter of the same novel the same, but different per Novel.
This program will close to directly return after it checked the chapters and sent the webhook.
But you probably want to get notfied without the need to do anything.
For this I reccomend you to simply put the program in a cronjob (make sure the working directory aligns with your config file locaiton)
and set it up to run your program every 5min or so.
No webhook will be executed if there is no new chapter found.