From a2467ce4531f7f40d2df6ea8abcc805d32cafb6a Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Wed, 7 Jul 2021 18:21:10 +0200 Subject: [PATCH] Actually fix this shit --- commands/update.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/update.js b/commands/update.js index 3a03496..f2304a2 100644 --- a/commands/update.js +++ b/commands/update.js @@ -22,11 +22,9 @@ module.exports = { let regex = /.{0,7} / let commitMsg = stdout.replace(regex, "") process.stdout.write(stdout) - msg.edit(`${sendText}\n\nNewest commit:\n${stdout.split(" ")[1]}`) + msg.edit(`${sendText}\n\nNewest commit:\n${commitMsg}`) if (err) console.log(stderr) - }) - }) } if (err) {