Added bun bundle

This commit is contained in:
2025-08-10 20:57:27 +02:00
parent 30e18257d0
commit b4f0a2c8dc
16 changed files with 88 additions and 98 deletions

View File

@@ -8,9 +8,9 @@ import logToChannel from "~/utils/Functions/logtochannel"
import tryCatch from "../Functions/trycatch"
import { log } from "../Logger"
export default async function loadModalEvents(client: Client) {
const modalPath = path.join(import.meta.dirname, "..", "..", "components", "modals")
const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith(".ts"))
export default async function loadModalEvents(client: Client, ft: "ts" | "js", folder: "src" | "dist") {
const modalPath = path.join(process.cwd(), folder, "components", "modals")
const modalFiles = fs.readdirSync(modalPath).filter(file => file.endsWith(`.${ft}`))
for (const file of modalFiles) {
const filePath = path.join(modalPath, file)