Skip to content

Commit

Permalink
fix double-space new lines in console
Browse files Browse the repository at this point in the history
now its (mostly) just a 1 line space, but sometimes there is no space lol (?)
  • Loading branch information
NotYourAverageGamer committed Jun 10, 2024
1 parent 7c9d8db commit 2553437
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bot/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ async function updateDiscordEmbeds() {
editMessageWithEmbeds(javaEmbed, bedrockEmbed);

// Log successful embed update to console (in green) with timestamp
console.log(
process.stdout.write(
getCurrentDateTime() + ': \x1b[32mEmbeds updated successfully.\x1b[0m'
);
} catch (error) {
// Log error to console (in red) with timestamp
console.error(
getCurrentDateTime() + ': \x1b[31mError updating embeds:\x1b[0m',
error
process.stderr.write(
getCurrentDateTime() + ': \x1b[31mError updating embeds:\x1b[0m\n'
);
process.stderr.write(`${error}\n`);
}
}

Expand Down

0 comments on commit 2553437

Please sign in to comment.