Feat: Adding GUILDS! #12
7
app.js
7
app.js
@ -141,6 +141,7 @@ async function initialize() {
|
||||
loadConfigFromFile();
|
||||
renderGuildList();
|
||||
await connectToAllRooms();
|
||||
await joinAllGuilds(); // Ensure the app joins all guilds on startup
|
||||
}
|
||||
|
||||
if (!configExists) {
|
||||
@ -189,6 +190,12 @@ async function initialize() {
|
||||
}
|
||||
}
|
||||
|
||||
async function joinAllGuilds() {
|
||||
for (const guildTopic in config.guilds) {
|
||||
await joinGuildRequest(guildTopic);
|
||||
}
|
||||
}
|
||||
|
||||
function setupEventListeners() {
|
||||
const registerForm = document.querySelector('#register-form');
|
||||
const selectAvatarButton = document.querySelector('#select-avatar');
|
||||
|
Loading…
Reference in New Issue
Block a user