mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
use icon pill for formatting scores
This commit is contained in:
parent
66254a2f7a
commit
31262bb7b2
3 changed files with 9 additions and 4 deletions
|
@ -21,4 +21,9 @@ module.exports.link = function(url, masked, tooltip = ""){
|
|||
|
||||
module.exports.timestamp = function(time, flag = "t"){
|
||||
return `<t:${Math.floor(time/1000)}:${flag}>`
|
||||
}
|
||||
|
||||
module.exports.iconPill = function(icon, content){
|
||||
if(!ICONS[icon]) icon = "question"
|
||||
return ICONS[icon] + ' ' + "` " + content + " `"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue