fixes to info command

pull/29/head
Matthew 2020-12-24 21:54:30 -05:00
parent 8870d3659e
commit f4c4b37f22
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export default class Info extends Command {
embed.addField('Compilers/Transpilers', `TypeScript [tsc] (${tsVersion})`, true); embed.addField('Compilers/Transpilers', `TypeScript [tsc] (${tsVersion})`, true);
embed.addField('Memory Usage', `${Math.round(process.memoryUsage().rss / 1024 / 1024)} MB / ${Math.round(totalmem() / 1024 / 1024 / 1024)} GB`, true); embed.addField('Memory Usage', `${Math.round(process.memoryUsage().rss / 1024 / 1024)} MB / ${Math.round(totalmem() / 1024 / 1024 / 1024)} GB`, true);
embed.addField('Repository', 'https://loc.sh/crgit | Licensed under GNU Affero General Public License V3', true); embed.addField('Repository', 'https://loc.sh/crgit | Licensed under GNU Affero General Public License V3', true);
embed.addField('Branch', await this.client.util.exec('git branch --show-current'), true); embed.addField('Branch', await this.client.util.exec('git rev-parse --abbrev-ref HEAD'), true);
embed.addField('Commit SHA', await this.client.util.exec('git rev-parse --short HEAD'), true); embed.addField('Commit SHA', await this.client.util.exec('git rev-parse --short HEAD'), true);
embed.addField('Commit Link', `https://gitlab.libraryofcode.org/engineering/communityrelations/-/commit/${await this.client.util.exec('git rev-parse HEAD')}`, true); embed.addField('Commit Link', `https://gitlab.libraryofcode.org/engineering/communityrelations/-/commit/${await this.client.util.exec('git rev-parse HEAD')}`, true);
embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setFooter(this.client.user.username, this.client.user.avatarURL);