mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
update bot
This commit is contained in:
parent
b24a30851e
commit
a6efe07e07
3 changed files with 9 additions and 6 deletions
|
@ -178,10 +178,9 @@ function createSearchResultPage(context, result, doodle){
|
||||||
break;
|
break;
|
||||||
case SEARCH_CARD_TYPES.DATA_FINANCE:
|
case SEARCH_CARD_TYPES.DATA_FINANCE:
|
||||||
res = createEmbed("default", context, {
|
res = createEmbed("default", context, {
|
||||||
description: `-# $${result.finance.ticker} (${result.finance.exchange}) ${result.finance.time}\n${result.finance.title}\n# ${result.finance.price}$\n**${result.finance.change}** ${link(result.finance.disclaimer.url, `${result.finance.disclaimer.label} ${icon("link_open_external")}`, result.finance.disclaimer.label)}`,
|
description: `-# $${result.finance.ticker} (${result.finance.exchange}) ${result.finance.time}\n${result.finance.title}\n# $${result.finance.price}\n**${result.finance.change}** ${link(result.finance.disclaimer.url, `${result.finance.disclaimer.label} ${icon("link_open_external")}`, result.finance.disclaimer.label)}`,
|
||||||
footer: {
|
footer: {
|
||||||
// TODO: googlefinance Static Asset
|
iconUrl: STATICS.googlefinance,
|
||||||
iconUrl: STATICS.google,
|
|
||||||
text: `Google Finance • ${context.application.name}`
|
text: `Google Finance • ${context.application.name}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -180,10 +180,9 @@ function createSearchResultPage(context, result, doodle){
|
||||||
break;
|
break;
|
||||||
case SEARCH_CARD_TYPES.DATA_FINANCE:
|
case SEARCH_CARD_TYPES.DATA_FINANCE:
|
||||||
res = createEmbed("default", context, {
|
res = createEmbed("default", context, {
|
||||||
description: `-# $${result.finance.ticker} (${result.finance.exchange}) ${result.finance.time}\n${result.finance.title}\n# ${result.finance.price}$\n**${result.finance.change}** ${link(result.finance.disclaimer.url, `${result.finance.disclaimer.label} ${icon("link_open_external")}`, result.finance.disclaimer.label)}`,
|
description: `-# $${result.finance.ticker} (${result.finance.exchange}) ${result.finance.time}\n${result.finance.title}\n# $${result.finance.price}\n**${result.finance.change}** ${link(result.finance.disclaimer.url, `${result.finance.disclaimer.label} ${icon("link_open_external")}`, result.finance.disclaimer.label)}`,
|
||||||
footer: {
|
footer: {
|
||||||
// TODO: googlefinance Static Asset
|
iconUrl: STATICS.googlefinance,
|
||||||
iconUrl: STATICS.google,
|
|
||||||
text: `Google Finance • ${context.application.name}`
|
text: `Google Finance • ${context.application.name}`
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -54,6 +54,10 @@ const Statics = Object.freeze({
|
||||||
file: "brands/google.png",
|
file: "brands/google.png",
|
||||||
revision: 2
|
revision: 2
|
||||||
},
|
},
|
||||||
|
googlefinance: {
|
||||||
|
file: "brands/googlefinance.png",
|
||||||
|
revision: 0
|
||||||
|
},
|
||||||
inferkit: {
|
inferkit: {
|
||||||
file: "brands/inferkit.png",
|
file: "brands/inferkit.png",
|
||||||
revision: 1
|
revision: 1
|
||||||
|
@ -203,6 +207,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),
|
||||||
|
googlefinance: staticAsset(Statics.brands.googlefinance),
|
||||||
emojipedia: staticAsset(Statics.brands.emojipedia),
|
emojipedia: staticAsset(Statics.brands.emojipedia),
|
||||||
inferkit: staticAsset(Statics.brands.inferkit),
|
inferkit: staticAsset(Statics.brands.inferkit),
|
||||||
inspirobot: staticAsset(Statics.brands.inspirobot),
|
inspirobot: staticAsset(Statics.brands.inspirobot),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue