diff --git a/breadbot.js b/breadbot.js index bee8d7c..72035c7 100644 --- a/breadbot.js +++ b/breadbot.js @@ -109,6 +109,9 @@ client.on(Events.VoiceStateUpdate, async (oldState, newState) => { logger.info(`Channel Join Detected ${newState.guild.id} - ${newState.channelId} - ${newState.member.id}`) + //TODO Nothing should happen after this if the channel fails to register + await sqlutil.registerChannelIfMissing(newState.channel.id, newState.guild.id, newState.channel.name) + var existingCallID = await sqlutil.inCall(newState.guild.id, newState.channelId) logger.info(`Existing call ID ${existingCallID}`)