flacial / nyaasi-bot-tg Goto Github PK
View Code? Open in Web Editor NEWTelegram bot that fetches nyaa.si RSS feed and format it into channel posts
License: MIT License
Telegram bot that fetches nyaa.si RSS feed and format it into channel posts
License: MIT License
Update animePoster
to return a default image link if Kitsu API failed to get the release's poster.
Theory: When nyaasi pushes a new release to its RSS, the page for that isn't up yet. So, when we try to get the release's magnet, it returns a 404
response.
Potential solutions:
Oops, our bot is faster than their server. We couldn't get the magnet.
The current names could be more meaningful and define the content (functions, ..etc) of the folder.
getData
-> data
<FILE_NAME>.util
-> <FILE_NAME>.utils
animePoster
=> getAnimePoster
The current approach is to store hashes in a file. It works perfect but if the storage isn't persistent, it's useless.
Add server, so the bot can be deployed to Heroku.
Add CI/CD setup with CircleCI
If a release is older than the newest 50 releases, the bot should send all the new releases that satisfy the category check.
When the page isn't found, getItemHTML
throws a 404 error. To handle it, the function should be wrapped with try/catch
and return null when there's an error or get the magnet after a number of seconds.
The formatTitle
following regex remove everything after the first -
. In nyaasi releases, what follows the -
is usually the episode number.
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.