diff --git a/bun.lockb b/bun.lockb index e2c3da2..5e84d28 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 24105b9..f8456b8 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,11 @@ "cloudflare:tunnel": "sudo cloudflared tunnel run" }, "devDependencies": { - "bun-types": "^0.1.2" + "bun-types": "^0.1.8" }, "dependencies": { "@discordjs/collection": "^0.7.0", - "bun-utilities": "^0.1.3", + "bun-utilities": "^0.2.1", "create-hmac": "^1.1.7", "discord-api-types": "^0.36.1", "hono": "^1.6.4", diff --git a/src/commands/version.ts b/src/commands/version.ts index cc0effb..5cc58ba 100644 --- a/src/commands/version.ts +++ b/src/commands/version.ts @@ -1,8 +1,8 @@ import { InteractionResponseType, MessageFlags } from 'discord-api-types/v10'; import { Command } from '../structures/Command'; -import { exec } from 'bun-utilities'; +import { exec } from 'bun-utilities/spawn'; -const commitHash = (await exec(['git', 'log', '--pretty=format:\'%h\'', '-n', '1'])).stdout.replaceAll('\'', ''); +const commitHash = exec(['git', 'log', '--pretty=format:\'%h\'', '-n', '1']).stdout.replaceAll('\'', ''); new Command({ name: 'version',