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)]), description: codeblock("ansi", ["" + ocr.response.body.text.substr(0,3900)]),
footer: { footer: {
iconUrl: STATICS.google, iconUrl: STATICS.googlelens,
text: `Google Cloud Vision${context.application.name} • Took ${ocr.timings}s` text: `Google Lens${context.application.name} • Took ${ocr.timings}s`
} }
}], }],
components components

View file

@ -25,8 +25,8 @@ function createReverseImageSearchResultPage(context, result, source) {
url: source url: source
}, },
footer: { footer: {
iconUrl: STATICS.google, iconUrl: STATICS.googlelens,
text: `Google Cloud Vision${context.application.name}` text: `Google Lens${context.application.name}`
} }
})) }))
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail }; 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)]), description: codeblock("ansi", ["" + stringwrap(ocr.response.body.text, 2000)]),
footer: { footer: {
iconUrl: STATICS.google, iconUrl: STATICS.googlelens,
text: `Google Cloud Vision${context.application.name} • Took ${ocr.timings}s` text: `Google Lens${context.application.name} • Took ${ocr.timings}s`
} }
})) }))
}catch(e){ }catch(e){

View file

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

View file

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

View file

@ -25,8 +25,8 @@ function createReverseImageSearchResultPage(context, result, source) {
url: source url: source
}, },
footer: { footer: {
iconUrl: STATICS.google, iconUrl: STATICS.googlelens,
text: `Google Cloud Vision${context.application.name}` text: `Google Lens${context.application.name}`
} }
})) }))
if (result.thumbnail) res.embeds[0].thumbnail = { url: result.thumbnail }; 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)]), description: codeblock("ansi", [ocr.response.body.text.substr(0,4000)]),
footer: { footer: {
iconUrl: STATICS.google, iconUrl: STATICS.googlelens,
text: `Google Cloud Vision${context.application.name} • Took ${ocr.timings}s` text: `Google Lens${context.application.name} • Took ${ocr.timings}s`
} }
})) }))
}, },

View file

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

View file

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