How to join only unique groups from all bot account?

Hi, I’ve many account on the bot and I want to join new FB groups that are unique in all accounts.

Example:- I’ve 10 accounts and I’m joining 50 groups for each account in the same niche, so how I do setup that can filter if any groups are already requested to join or join from other bot account , that will get skipped to join on other FB accounts.

Your valuable answer is appreciated in advanced. .