mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-14 09:03:04 -04:00
give old kgs cards a little love
This commit is contained in:
parent
b1e72550b4
commit
77546ea7b7
1 changed files with 2 additions and 2 deletions
|
@ -54,12 +54,12 @@ function createSearchResultPage(context, result, doodle){
|
|||
let header = result.card.title;
|
||||
if(result.card.url) header = link(result.card.url, result.card.title)
|
||||
res = page(createEmbed("default", context, {
|
||||
description: `**${header}**\n`,
|
||||
description: `### ${header}\n`,
|
||||
footer: renderFooter(context, doodle)
|
||||
}))
|
||||
|
||||
if(result.card.image) res.embeds[0].thumbnail = { url: result.card.image };
|
||||
if(result.card.description) res.embeds[0].description += `*${result.card.description}*\n`
|
||||
if(result.card.description) res.embeds[0].description += `-# ${result.card.description}\n`
|
||||
if(result.card.content){
|
||||
let cnt = result.card.content.replace(/\n/g, '')
|
||||
if(cnt.endsWith(" ")) cnt = cnt.substr(0,cnt.length - 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue