rebrand gcv -> lens

This commit is contained in:
bignutty 2024-11-22 20:29:27 +01:00
parent 0fe41c25f1
commit 6438e7b63f
9 changed files with 21 additions and 16 deletions

View file

@ -81,8 +81,8 @@ module.exports = {
},
description: codeblock("ansi", ["" + ocr.response.body.text.substr(0,3900)]),
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name} • Took ${ocr.timings}s`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name} • Took ${ocr.timings}s`
}
}],
components

View file

@ -25,8 +25,8 @@ function createReverseImageSearchResultPage(context, result, source) {
url: source
},
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name}`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name}`
}
}))
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail };

View file

@ -51,8 +51,8 @@ module.exports = {
},
description: codeblock("ansi", ["" + stringwrap(ocr.response.body.text, 2000)]),
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name} • Took ${ocr.timings}s`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name} • Took ${ocr.timings}s`
}
}))
}catch(e){

View file

@ -35,8 +35,8 @@ module.exports = {
url: image
},
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name}`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name}`
}
}))
},

View file

@ -40,8 +40,8 @@ module.exports = {
url: image
},
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name}`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name}`
}
}))
},

View file

@ -25,8 +25,8 @@ function createReverseImageSearchResultPage(context, result, source) {
url: source
},
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name}`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name}`
}
}))
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail };

View file

@ -39,8 +39,8 @@ module.exports = {
},
description: codeblock("ansi", [ocr.response.body.text.substr(0,4000)]),
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name} • Took ${ocr.timings}s`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name} • Took ${ocr.timings}s`
}
}))
},

View file

@ -63,8 +63,8 @@ module.exports = {
url: image
},
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision${context.application.name}`
iconUrl: STATICS.googlelens,
text: `Google Lens${context.application.name}`
}
}))
}catch(e){

View file

@ -68,6 +68,10 @@ const Statics = Object.freeze({
file: "brands/googlefinance.png",
revision: 0
},
googlelens: {
file: "brands/lens.png",
revision: 0
},
googlemaps: {
file: "brands/maps.png",
revision: 0
@ -225,6 +229,7 @@ module.exports.STATICS = Object.freeze({
chatgpt: staticAsset(Statics.brands.chatgpt),
genius: staticAsset(Statics.brands.genius),
google: staticAsset(Statics.brands.google),
googlelens: staticAsset(Statics.brands.googlelens),
googlefinance: staticAsset(Statics.brands.googlefinance),
googlemaps: staticAsset(Statics.brands.googlemaps),
googletranslate: staticAsset(Statics.brands.googletranslate),