diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-18 23:11:17 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-07-18 23:11:17 -0400 |
commit | c486d655de34c0827ef2614733af289be5139bc3 (patch) | |
tree | c7622d018b6436777da74823bfb7a9cd672d73f9 /src/commands/info/botInfo.ts | |
parent | b754bdd64bf09a6b9af9d30cca8e68ad7888355f (diff) | |
download | tanzanite-c486d655de34c0827ef2614733af289be5139bc3.tar.gz tanzanite-c486d655de34c0827ef2614733af289be5139bc3.tar.bz2 tanzanite-c486d655de34c0827ef2614733af289be5139bc3.zip |
actually imprt fetch
Diffstat (limited to 'src/commands/info/botInfo.ts')
-rw-r--r-- | src/commands/info/botInfo.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts index 986bd01..2add1ac 100644 --- a/src/commands/info/botInfo.ts +++ b/src/commands/info/botInfo.ts @@ -20,7 +20,8 @@ export default class BotInfoCommand extends BushCommand { public async exec(message: BushMessage | BushSlashMessage): Promise<void> { const developers = (await this.client.util.mapIDs(this.client.config.owners)).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', ''); + let repoUrl = (await this.client.util.shell('git remote get-url origin')).stdout.replace('\n', ''); + repoUrl = repoUrl.substring(0, repoUrl.length-4) const embed = new MessageEmbed() .setTitle('Bot Info:') .addField('**Uptime**', this.client.util.humanizeDuration(this.client.uptime), true) |