mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 00:33:59 +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 { ActivityType, Client as DiscordClient, Partials } from 'discord.js'
|
||||||
import config from '../config'
|
import config from '../config'
|
||||||
import { LabeledResponseDatabase } from './classes/Database'
|
import { LabeledResponseDatabase } from './classes/Database'
|
||||||
import { pathJoinCurrentDir } from './utils/fs' with { type: 'macro' }
|
import { pathJoinCurrentDir } from './utils/fs'
|
||||||
|
|
||||||
export { config }
|
export { config }
|
||||||
export const logger = createLogger({
|
export const logger = createLogger({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
// import { listAllFilesRecursive, pathJoinCurrentDir } from '$utils/fs'
|
// import { listAllFilesRecursive, pathJoinCurrentDir } from '$utils/fs'
|
||||||
import { getMissingEnvironmentVariables } from '@revanced/bot-shared'
|
import { getMissingEnvironmentVariables } from '@revanced/bot-shared'
|
||||||
import { api, discord, logger } from './context'
|
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'))) {
|
for (const event of listAllFilesRecursive(pathJoinCurrentDir(import.meta.url, 'events', 'api'))) {
|
||||||
await import(event)
|
await import(event)
|
||||||
|
|||||||
Reference in New Issue
Block a user