mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-18 19:07:16 -04:00
quora search
This commit is contained in:
parent
03f88d10cc
commit
c1c63e3fc2
4 changed files with 85 additions and 0 deletions
|
@ -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',
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue