How do you make a discord role give bot

How do you make a bot which when you do the command say (prefix)give @pandahub Role X
also how do you then add a timer so the bot auto removes the role after say 30days.

Thanks for any help

Please do not ask to be spoon-fed.

Read the docs & make sure you have a good knowledge of JS & whatever library you’re using.