fix replies not getting truncated properly

This commit is contained in:
Cynthia Foxwell 2022-09-19 13:19:31 -06:00
parent 145a163e53
commit 353afbc23c
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ function processMessage({
console.log(
` \u250d [${reply.author.username}] ${
length > 79
? replyContent.substring(0, length - headerLength) + "\u2026"
? replyContent.substring(0, 79 - headerLength) + "\u2026"
: replyContent
}`
);
@ -34,7 +34,7 @@ function processMessage({
chalk.reset(
`${
length > 79
? replyContent.substring(0, length - headerLength) + "\u2026"
? replyContent.substring(0, 79 - headerLength) + "\u2026"
: replyContent
}`
)