mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
update reverse image search to use google
This commit is contained in:
parent
fd7f3fbcbf
commit
ae73c712a5
3 changed files with 12 additions and 12 deletions
|
@ -32,8 +32,8 @@ const Api = Object.freeze({
|
|||
SEARCH_GOOGLE_IMAGES: '/search/google-images',
|
||||
SEARCH_LYRICS: '/search/lyrics',
|
||||
SEARCH_REDDIT: '/search/reddit',
|
||||
SEARCH_REVERSE_IMAGE: '/search/reverse-image',
|
||||
SEARCH_RULE34: '/search/booru',
|
||||
SEARCH_TINEYE: '/search/tineye',
|
||||
SEARCH_URBANDICTIONARY: '/search/urbandictionary',
|
||||
SEARCH_WEATHER: '/search/weather',
|
||||
SEARCH_WIKIHOW: '/search/wikihow',
|
||||
|
|
|
@ -152,8 +152,8 @@ module.exports.dictionary = async function(context, query){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.tineye = async function(context, url){
|
||||
return await request(Api.SEARCH_TINEYE, "GET", {}, {
|
||||
module.exports.reverseImageSearch = async function(context, url){
|
||||
return await request(Api.SEARCH_REVERSE_IMAGE, "GET", {}, {
|
||||
url: url
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue