aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-16 20:18:29 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-16 20:18:29 -0500
commitecfdc42b6efb958ddfd473f85a84728f34c8f663 (patch)
tree7a5e3ff780d1d20ae5fa70f6b5a332005cd60d87 /src/commands/info
parentefb6f1f8a5137500d1608a896d6242fc816f5693 (diff)
downloadtanzanite-ecfdc42b6efb958ddfd473f85a84728f34c8f663.tar.gz
tanzanite-ecfdc42b6efb958ddfd473f85a84728f34c8f663.tar.bz2
tanzanite-ecfdc42b6efb958ddfd473f85a84728f34c8f663.zip
fix url not working sometimes
Diffstat (limited to 'src/commands/info')
-rw-r--r--src/commands/info/botInfo.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/info/botInfo.ts b/src/commands/info/botInfo.ts
index 3fc3d3f..fa572e8 100644
--- a/src/commands/info/botInfo.ts
+++ b/src/commands/info/botInfo.ts
@@ -38,7 +38,7 @@ export default class BotInfoCommand extends BushCommand {
const developers = (await util.mapIDs(client.config.owners)).map((u) => u?.tag).join('\n');
const currentCommit = (await util.shell('git rev-parse HEAD')).stdout.replace('\n', '');
let repoUrl = (await util.shell('git remote get-url origin')).stdout.replace('\n', '');
- repoUrl = repoUrl.substring(0, repoUrl.length - 4);
+ if (repoUrl.includes('.git')) repoUrl = repoUrl.substring(0, repoUrl.length - 4);
const embed = new MessageEmbed()
.setTitle('Bot Info:')
.addField('**Uptime**', util.humanizeDuration(client.uptime!, 2), true)