From 7f27c5607ceeeef56d67097e88f68caa1b8791b3 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Fri, 29 Mar 2024 18:53:02 +0700 Subject: [PATCH] fix(bots/discord): remove usage of macros --- bots/discord/src/context.ts | 2 +- bots/discord/src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/discord/src/context.ts b/bots/discord/src/context.ts index 900c66f..f3216d0 100644 --- a/bots/discord/src/context.ts +++ b/bots/discord/src/context.ts @@ -4,7 +4,7 @@ import { createLogger } from '@revanced/bot-shared' import { ActivityType, Client as DiscordClient, Partials } from 'discord.js' import config from '../config' import { LabeledResponseDatabase } from './classes/Database' -import { pathJoinCurrentDir } from './utils/fs' with { type: 'macro' } +import { pathJoinCurrentDir } from './utils/fs' export { config } export const logger = createLogger({ diff --git a/bots/discord/src/index.ts b/bots/discord/src/index.ts index 0e4b836..ea4a601 100644 --- a/bots/discord/src/index.ts +++ b/bots/discord/src/index.ts @@ -1,7 +1,7 @@ // import { listAllFilesRecursive, pathJoinCurrentDir } from '$utils/fs' import { getMissingEnvironmentVariables } from '@revanced/bot-shared' import { api, discord, logger } from './context' -import { listAllFilesRecursive, pathJoinCurrentDir } from './utils/fs' with { type: 'macro' } +import { listAllFilesRecursive, pathJoinCurrentDir } from './utils/fs' for (const event of listAllFilesRecursive(pathJoinCurrentDir(import.meta.url, 'events', 'api'))) { await import(event)