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 0e6d074c11 - Show all commits

12
app.js
View File

@ -82,18 +82,6 @@ async function joinGuild(guildTopic) {
}
}
async function processGuild(guildData) {
const parsedData = JSON.parse(guildData);
config.guilds[parsedData.guildTopic] = {
alias: parsedData.guildAlias,
rooms: parsedData.rooms,
owner: parsedData.owner
};
writeConfigToFile("./config.json");
renderGuildList();
await joinGuild(parsedData.guildTopic);
}
async function joinRoom(guildTopic, roomTopic, alias) {
const topicBuffer = b4a.from(roomTopic, 'hex');
addRoomToList(guildTopic, roomTopic, alias);