update translate

This commit is contained in:
derpystuff 2023-11-20 17:32:31 +01:00
parent 148fb7d629
commit 5c5aba0c48
3 changed files with 25 additions and 18 deletions

View file

@ -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, 'ˋ') + " `**"
}