quora search

This commit is contained in:
derpystuff 2023-01-11 22:26:39 +01:00
parent 03f88d10cc
commit c1c63e3fc2
4 changed files with 85 additions and 0 deletions

View file

@ -31,6 +31,7 @@ const Api = Object.freeze({
SEARCH_GOOGLE: '/search/google',
SEARCH_GOOGLE_IMAGES: '/search/google-images',
SEARCH_LYRICS: '/search/lyrics',
SEARCH_QUORA: '/search/quora',
SEARCH_REDDIT: '/search/reddit',
SEARCH_REVERSE_IMAGE: '/search/reverse-image',
SEARCH_RULE34: '/search/booru',

View file

@ -118,6 +118,12 @@ module.exports.googleImages = async function(context, query, nsfw){
})
}
module.exports.quora = async function(context, query){
return await request(Api.SEARCH_QUORA, "GET", {}, {
q: query
})
}
module.exports.reddit = async function(context, query, nsfw = false){
return await request(Api.SEARCH_REDDIT, "GET", {}, {
q: query,