From 0c1357903b69ffd6851d06aa1d626d5fa1a43d0d Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Wed, 7 Jul 2021 18:00:52 +0200 Subject: [PATCH] Fix update to show whole commit msg --- commands/update.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/update.js b/commands/update.js index 013536a..3a03496 100644 --- a/commands/update.js +++ b/commands/update.js @@ -19,6 +19,8 @@ module.exports = { message.channel.send(sendText).then(function(msg){ cmd = "git log --oneline -n 1"; exec(cmd, (err, stdout, stderr) =>{ + let regex = /.{0,7} / + let commitMsg = stdout.replace(regex, "") process.stdout.write(stdout) msg.edit(`${sendText}\n\nNewest commit:\n${stdout.split(" ")[1]}`) if (err) console.log(stderr)