Feat: Adding GUILDS! #12

Merged
snxraven merged 21 commits from guilds into main 2024-07-07 23:01:33 -04:00
Showing only changes of commit ed4625275d - Show all commits

7
app.js
View File

@ -141,6 +141,7 @@ async function initialize() {
loadConfigFromFile(); loadConfigFromFile();
renderGuildList(); renderGuildList();
await connectToAllRooms(); await connectToAllRooms();
await joinAllGuilds(); // Ensure the app joins all guilds on startup
} }
if (!configExists) { if (!configExists) {
@ -189,6 +190,12 @@ async function initialize() {
} }
} }
async function joinAllGuilds() {
for (const guildTopic in config.guilds) {
await joinGuildRequest(guildTopic);
}
}
function setupEventListeners() { function setupEventListeners() {
const registerForm = document.querySelector('#register-form'); const registerForm = document.querySelector('#register-form');
const selectAvatarButton = document.querySelector('#select-avatar'); const selectAvatarButton = document.querySelector('#select-avatar');