feat: mise à jour du code

This commit is contained in:
UltraLionFr
2025-08-26 01:21:58 +02:00
parent 944845cd11
commit d3d3642ec3
29 changed files with 487 additions and 320 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
const fs = require("fs");
const path = require("path");
const fs = require('fs');
const path = require('path');
function loadEvents(client) {
const eventsPath = path.join(__dirname, "../events");
const eventsPath = path.join(__dirname, '../events');
function walk(dir) {
const files = fs.readdirSync(dir, { withFileTypes: true });
@@ -12,7 +12,7 @@ function loadEvents(client) {
if (file.isDirectory()) {
walk(filePath);
} else if (file.name.endsWith(".js")) {
} else if (file.name.endsWith('.js')) {
const event = require(filePath);
if (event.once) {
@@ -27,4 +27,4 @@ function loadEvents(client) {
walk(eventsPath);
}
module.exports = { loadEvents };
module.exports = { loadEvents };