import robloxapi
async def grouprank(userId, rankName):
# omitted rank-name to role id mapping
rankId = dic[rankName]
client = robloxapi.Client(cookie=NOT_STUPID_ENOUGH_TO_DISCLOSE)
grp = await client.get_group(32409863)
await robloxapi.client.Group.set_rank_by_id(grp, userId, rankId)
import asyncio
lp = asyncio.new_event_loop()
lp.run_until_complete(grouprank(2315210162, "Recruit"))
The code above throws the following error: ssl.SSLError: Cannot create a client socket with a PROTOCOL_TLS_SERVER context (_ssl.c:795)
This code is mainly to rank a player to another rank in a roblox group using a bot