[Plugin Request] Join a channel immediately when someone else leaves it

This is a longshot, but I looked at the SDK and as someone who has no clue how to code I was way over my head. I was wondering if it was possible to make a plugin where you can select a channel, and instanly join when the limit is no longer maxed. I currently have the power to join the full channel, which causes some issues because I do not want to exceed channel limit, but people without the ability to join the full channel can spam the channel to rapidly enter the channel.

I was wondering if it was possible, or even simple to create such a plugin where the channel can be selected, and you would join the moment the max client limit was no longer reached. Then the plugin would automatically deactivate to prevent the user from permanently being stuck in the channel.