mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-17 02:17:05 -04:00
add manga command
This commit is contained in:
parent
4039a0de3f
commit
0bc0186b72
4 changed files with 421 additions and 0 deletions
|
@ -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',
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue