mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(bots/discord): wrong command file path being imported
This commit is contained in:
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'bun'
|
||||
export const listAllFilesRecursive = (dir: string): string[] =>
|
||||
readdirSync(dir, { recursive: true, withFileTypes: true })
|
||||
.filter(x => x.isFile())
|
||||
.map(x => join(dir, x.name))
|
||||
.map(x => join(x.parentPath, x.name))
|
||||
|
||||
export const pathJoinCurrentDir = (importMetaUrl: string, ...objects: [string, ...string[]]) =>
|
||||
join(dirname(fileURLToPath(importMetaUrl)), ...objects)
|
||||
|
||||
Reference in New Issue
Block a user