add manga command

This commit is contained in:
bignutty 2025-05-12 00:46:06 +02:00
parent 4039a0de3f
commit 0bc0186b72
4 changed files with 421 additions and 0 deletions

View file

@ -33,6 +33,7 @@ const Api = Object.freeze({
OMNI_ANIME: '/omni/anime',
OMNI_ANIME_SUPPLEMENTAL: '/omni/anime-supplemental',
OMNI_MANGA: '/omni/manga',
OMNI_MOVIE: '/omni/movie',
PHOTOFUNIA_RETRO_WAVE: '/photofunia/retro-wave',

View file

@ -451,6 +451,13 @@ module.exports.animeSupplemental = async function(context, supplementalKey){
})
}
module.exports.manga = async function(context, query, includeAdultContent){
return await request(Api.OMNI_MANGA, "GET", {}, {
q: query,
include_adult: includeAdultContent
})
}
module.exports.movie = async function(context, query, includeAdultContent){
return await request(Api.OMNI_MOVIE, "GET", {}, {
q: query,