From 9c1703d1aed37480951a233a8dfd4a11cdca1a9c Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Thu, 16 May 2024 21:13:31 -0600 Subject: [PATCH] test --- index.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 461ec8a..fb3ac38 100644 --- a/index.js +++ b/index.js @@ -943,20 +943,16 @@ discord.on("interactionCreate", async (interaction) => { await interaction.deferReply({ ephemeral: true }) var category; - // Create channels for all rooms - const chunks = []; - const chunkSize = 50; - // const totalRooms = iem.length; - // for (let i = 0; i < totalRooms; i += chunkSize) { - // chunks.push(iem.slice(i, i + chunkSize)); - // } + // New setup, we're pulling from wfos.json now const wfoChunks = []; const wfoChunkSize = 50; const totalWFOs = wfos.length; + // wfos is object "wfo": {"location": "Text Name", "room": "roomname"} for (let i = 0; i < totalWFOs; i += wfoChunkSize) { wfoChunks.push(wfos.slice(i, i + wfoChunkSize)); + console.log(wfos.slice(i, i + wfoChunkSize)) }