init
All checks were successful
Gitea Auto Deploy / Deploy-Container (push) Successful in 49s

This commit is contained in:
2025-11-11 19:20:04 +07:00
parent 77e86b113c
commit 38c72e6c4f
6 changed files with 546 additions and 68 deletions

View File

@@ -8,7 +8,7 @@ export default function ActiveAllEvents(client: Client) {
const folderPath = path.join(eventFolder, folder);
if (!fs.statSync(folderPath).isDirectory()) continue;
const eventFiles = fs.readdirSync(folderPath).filter(file => file.endsWith(".ts"));
const eventFiles = fs.readdirSync(folderPath).filter(file => file.endsWith(".ts") || file.endsWith(".js"));
for (const file of eventFiles) {
const event = require(path.join(folderPath, file));
if (!event.name || typeof event.execute !== "function") {