The bot would attribute to each member a role, according to the channels they are subscribed to. The roles would be "bac-1", "bac-2", "bac-3", "m-1", "m-2", and would give access to a specific channel (#bac-1 / #bac-2 / #bac-3 / #m-1 / #m-2).
The role should be given following this simple rule:
You get the role of the highest year possible
--> So if you are subscribed to bac-1 and bac-2 channels, you would be given role "bac-2"
--> If you are only subscribed to bac-1 channels then you simply get role "bac 1"
The bot would attribute to each member a role, according to the channels they are subscribed to. The roles would be "bac-1", "bac-2", "bac-3", "m-1", "m-2", and would give access to a specific channel (#bac-1 / #bac-2 / #bac-3 / #m-1 / #m-2).
The role should be given following this simple rule: