discord.py bot give user a role code example
Example: add role discord .py
member = message.author
var = discord.utils.get(message.guild.roles, name = "role name")
member.add_role(var)
member = message.author
var = discord.utils.get(message.guild.roles, name = "role name")
member.add_role(var)