minor fixes
This commit is contained in:
parent
c2675fefa3
commit
95fca1c026
2 changed files with 4 additions and 3 deletions
|
@ -380,6 +380,7 @@ setInterval(function () {
|
|||
} else {
|
||||
console.log(timeString);
|
||||
}
|
||||
comcord.state.nameLength = client.user.username.length + 2;
|
||||
sentTime = true;
|
||||
} else if (seconds > 2 && sentTime) {
|
||||
sentTime = false;
|
||||
|
|
|
@ -182,9 +182,9 @@ function formatMessage({
|
|||
.replace(REGEX_EMOTE, replaceEmotes)
|
||||
.replace(REGEX_COMMAND, replaceCommands)
|
||||
.replace(REGEX_TIMESTAMP, replaceTimestamps);
|
||||
if (reply.attachments.length > 0) {
|
||||
replyContent += ` <${reply.attachments.length} attachment${
|
||||
reply.attachments.length > 1 ? "s" : ""
|
||||
if (reply.attachments.size > 0) {
|
||||
replyContent += ` <${reply.attachments.size} attachment${
|
||||
reply.attachments.size > 1 ? "s" : ""
|
||||
}>`;
|
||||
replyContent = replyContent.trim();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue