aboutsummaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/info/botInfo.ts3
-rw-r--r--src/commands/utilities/price.ts1
2 files changed, 3 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)
diff --git a/src/commands/utilities/price.ts b/src/commands/utilities/price.ts
index a8cf127..21781d1 100644
--- a/src/commands/utilities/price.ts
+++ b/src/commands/utilities/price.ts
@@ -1,6 +1,7 @@
import { Constants } from 'discord-akairo';
import { ColorResolvable, MessageEmbed } from 'discord.js';
import Fuse from 'fuse.js';
+import fetch from 'node-fetch';
import { BushCommand, BushMessage } from '../../lib';
interface Summary {