Actually fix this shit

This commit is contained in:
SileNce5k 2021-07-07 18:21:10 +02:00
parent 0c1357903b
commit a2467ce453
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -22,11 +22,9 @@ module.exports = {
let regex = /.{0,7} / let regex = /.{0,7} /
let commitMsg = stdout.replace(regex, "") let commitMsg = stdout.replace(regex, "")
process.stdout.write(stdout) 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) console.log(stderr)
}) })
}) })
} }
if (err) { if (err) {