rai if you are reading this im getting you a monster

This commit is contained in:
DeSqBlocki
2026-08-14 22:54:03 +02:00
parent 912b1b6ceb
commit c76680293e
34 changed files with 1478 additions and 3338 deletions
+20
View File
@@ -0,0 +1,20 @@
const fs = require('node:fs')
const path = require('node:path')
module.exports = (client) => {
const selectMenusFoldersPath = path.join(__dirname, '../selectMenus');
const selectMenusFolders = fs.readdirSync(selectMenusFoldersPath);
let selectMenuCount = 0
for (const folder of selectMenusFolders) {
const Path = path.join(selectMenusFoldersPath, folder);
const Files = fs.readdirSync(Path).filter(file => file.endsWith('.js'));
for (const file of Files) {
selectMenuCount++
const filePath = path.join(Path, file);
const button = require(filePath);
if ('execute' in button) {
client.selectMenus.set(button.name, button);
}
}
}
console.log(`[${selectMenuCount}] Select Menu(s) initialized`)
}