mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-19 01:03:58 +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[] =>
|
export const listAllFilesRecursive = (dir: string): string[] =>
|
||||||
readdirSync(dir, { recursive: true, withFileTypes: true })
|
readdirSync(dir, { recursive: true, withFileTypes: true })
|
||||||
.filter(x => x.isFile())
|
.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[]]) =>
|
export const pathJoinCurrentDir = (importMetaUrl: string, ...objects: [string, ...string[]]) =>
|
||||||
join(dirname(fileURLToPath(importMetaUrl)), ...objects)
|
join(dirname(fileURLToPath(importMetaUrl)), ...objects)
|
||||||
|
|||||||
Reference in New Issue
Block a user