aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/botInfo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info/botInfo.ts')
-rw-r--r--src/commands/info/botInfo.ts19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index 779b318..0226edc 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -19,12 +19,14 @@ export default class BotInfoCommand extends BushCommand {
const owners = (await this.client.util.mapIDs(this.client.ownerID))
.map((u) => u.tag)
.join('\n');
- const currentCommit = (
- await this.client.util.shell('git rev-parse HEAD')
- ).stdout.replace('\n', '');
- const repoUrl = (
- await this.client.util.shell('git remote get-url origin')
- ).stdout.replace('\n', '');
+ const currentCommit = (await this.client.util.shell('git rev-parse HEAD')).stdout.replace(
+ '\n',
+ ''
+ );
+ const repoUrl = (await this.client.util.shell('git remote get-url origin')).stdout.replace(
+ '\n',
+ ''
+ );
const embed = new MessageEmbed()
.setTitle('Bot Info:')
.addFields([
@@ -46,10 +48,7 @@ export default class BotInfoCommand extends BushCommand {
},
{
name: 'Current commit',
- value: `[${currentCommit.substring(
- 0,
- 7
- )}](${repoUrl}/commit/${currentCommit})`
+ value: `[${currentCommit.substring(0, 7)}](${repoUrl}/commit/${currentCommit})`
}
])
.setTimestamp();