nice
This commit is contained in:
parent
c1cefcc22b
commit
e20e7d74c6
1 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,10 @@ function notEmpty(str) {
|
|||
return str && str.trim() !== ''
|
||||
}
|
||||
|
||||
function shorten(str) {
|
||||
return str.length <= 20 ? str : str.slice(0, 17) + "...";
|
||||
}
|
||||
|
||||
const emojis = JSON.parse(readFileSync("config/emojis.json"));
|
||||
|
||||
module.exports = {
|
||||
|
@ -61,7 +65,7 @@ module.exports = {
|
|||
result.magnetlink,
|
||||
result.torrentfile,
|
||||
result.url
|
||||
].filter(notEmpty).join("\n• ");
|
||||
].filter(notEmpty).map(shorten).join("\n• ");
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setAuthor({
|
||||
|
|
Loading…
Reference in a new issue