mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-11 07:33:14 -04:00
icon redesign
This commit is contained in:
parent
a4df6550cd
commit
6b4e0f3347
19 changed files with 162 additions and 76 deletions
|
@ -31,14 +31,14 @@ function createRedditPage(context, result){
|
|||
|
||||
let awardData = []
|
||||
// Awards
|
||||
for(const a of Object.keys(result.awards)){
|
||||
awardData.push(`${icon(`reddit_${a}`)}${highlight(result.awards[a])}`)
|
||||
}
|
||||
//for(const a of Object.keys(result.awards)){
|
||||
// awardData.push(`${icon(`reddit_${a}`)}${highlight(result.awards[a])}`)
|
||||
//}
|
||||
|
||||
if(awardData.length >= 1) description.push(`${awardData.join(' ')}`)
|
||||
|
||||
description.push(``)
|
||||
description.push(`${iconPill("upvote", result.post.score)} ${icon("person")} ${link(result.author.link, `u/${result.author.name}`)}`)
|
||||
description.push(`${iconPill("upvote", result.post.score)} ${icon("user")} ${link(result.author.link, `u/${result.author.name}`)}`)
|
||||
|
||||
res.embeds[0].description = description.join('\n')
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue