mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
rebrand gcv -> lens
This commit is contained in:
parent
0fe41c25f1
commit
6438e7b63f
9 changed files with 21 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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}`
|
||||
}
|
||||
}))
|
||||
},
|
||||
|
|
|
@ -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}`
|
||||
}
|
||||
}))
|
||||
},
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
}))
|
||||
},
|
||||
|
|
|
@ -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){
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue