update reverse image search to use google

This commit is contained in:
derpystuff 2023-01-06 20:12:49 +01:00
parent fd7f3fbcbf
commit ae73c712a5
3 changed files with 12 additions and 12 deletions

View file

@ -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',

View file

@ -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
})
}