Fix running the bot outside of Git

This commit is contained in:
Essem 2022-02-18 10:39:40 -06:00
parent ec6fb7de37
commit 55f6271cd9
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

2
app.js
View file

@ -53,7 +53,7 @@ k <BBBw BBBBEBBBBBBBBBBBBBBBBBQ4BM #
*+, " F'"'*^~~~^"^\` V+*^
\`"""
esmBot ${esmBotVersion} (${(await exec("git rev-parse HEAD").catch(() => {})).stdout.substring(0, 7)}), powered by eris-fleet ${erisFleetVersion}
esmBot ${esmBotVersion} (${(await exec("git rev-parse HEAD").then(output => output.stdout.substring(0, 7), () => "unknown commit"))}), powered by eris-fleet ${erisFleetVersion}
`);
}