mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-10 23:23:08 -04:00
update translate
This commit is contained in:
parent
148fb7d629
commit
5c5aba0c48
3 changed files with 25 additions and 18 deletions
|
@ -29,6 +29,13 @@ module.exports.timestamp = function(time, flag = "t"){
|
|||
return `<t:${Math.floor(time/1000)}:${flag}>`
|
||||
}
|
||||
|
||||
module.exports.stringwrap = function(content = "", length){
|
||||
console.log(content)
|
||||
console.log(length)
|
||||
if(content.length > length) return content.substr(0, length) + '...';
|
||||
return content;
|
||||
}
|
||||
|
||||
module.exports.pill = function(content = ""){
|
||||
return " **` " + content.toString().replace(/\`/g, 'ˋ') + " `**"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue