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,

View file

@ -36,6 +36,10 @@ const Statics = Object.freeze({
file: "brands/photofunia.png",
revision: 1
},
quora: {
file: "brands/quora.png",
revision: 1
},
reddit: {
file: "brands/reddit.png",
revision: 0
@ -94,6 +98,7 @@ module.exports.STATICS = Object.freeze({
makesweet: staticAsset(Statics.brands.makesweet),
openweathermap: staticAsset(Statics.brands.openweathermap),
photofunia: staticAsset(Statics.brands.photofunia),
quora: staticAsset(Statics.brands.quora),
reddit: staticAsset(Statics.brands.reddit),
tineye: staticAsset(Statics.brands.tineye),
urbandictionary: staticAsset(Statics.brands.urbandictionary),