Development simple discord bot

Job ID: 32908745

Budget: $30 – $250 USD

Create discord bot that can both verify if someone is holding a specific NFT and identify which layers are included in the NFT, and then assign a role based on what the layer is.
For example assign role 1 to people who hold an NFT with a blue hat and role 2 to an NFT with a green hat. Does anyone have any suggestions on how to approach this?
first it needs to verify if they have an NFT from a specific collection on Opensea
next it needs to verify if that NFT has any of 4 attributes
If they have the NFT in their wallet but none of the 4 attributes, they get granted role A
If they have the NFT in their wallet and it has attribute 1, they get role B. If the NFT has attribute 2, they get role C, etc
Make it so that I give you the collection name, and the user and enter their wallet ID?

Can you do this?