coko7 / tcb-opus Goto Github PK
View Code? Open in Web Editor NEWA discord bot to get the latest manga chapters from TCB Scans as soon as they come out.
License: MIT License
A discord bot to get the latest manga chapters from TCB Scans as soon as they come out.
License: MIT License
3 modes:
Sometimes, TCB change the way their URL look by adding additional parts at the end.
Despite that, here is what the URL should always look like:
https://onepiecechapters.com/chapters/{Id}/{mangaName}-chapter-{chapNum}{suffix}
The {chapNum}
is the one thing we care about and it should always be an integer
.
The data.json
is not present on Git by default and must be created in order for the bot to run because of require("data.json")
.
Change this call to a readFile
call and create the file if it does not exist beforehand.
Add option to use Regex for manga name in opus-config for more complex manga names that might have several aliases
Whenever there is a manga update from TCB, the bot will try to identify which manga it is based on the message.
If there is an entry for the manga One Piece and if it set to a regex like One(.?)Piece
then it causes a problem because updates of all manga titles will be detected as One Piece. See below:
The reason this is happening is because the regex match is too permissive for "One Piece" and so it stops at the host name of TCB: "https://onepiece
chapters.com/chapters/5593/black-clover-chapter-347"
The way regex match on manga titles should be modified to ignore this case. Maybe instead of looking for a match in the entire match, we should first isolate the URL and use a regex pattern on the right-hand side to only extract the manga title (See #7)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.