fixes to info command
parent
8870d3659e
commit
f4c4b37f22
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue