mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): remove usage of macros
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user