Compare commits

..

No commits in common. "6bf0c7ab5bf45459e3feaa4d1151e537c5f4b02c" and "bd332e516f37bceaa064c8d995880e92df2e47fa" have entirely different histories.

View file

@ -15,8 +15,10 @@ async def start(client):
user_roles = {member.id: [role.name for role in member.roles] for member in members} user_roles = {member.id: [role.name for role in member.roles] for member in members}
return user_roles return user_roles
app.router.add_get('/get_roles', lambda request: aiohttp.web.json_response(get_userinfo())) async def get_roles(request):
app.router.add_get('/user_ids', lambda request: aiohttp.web.json_response([member.id for member in client.get_guild(int(os.getenv('DISCORD_GUILD'))).members])) return aiohttp.web.json_response(await get_userinfo())
app.router.add_get('/get_roles', get_roles)
app.router.add_get('/ping', lambda request: aiohttp.web.Response(text='pong')) app.router.add_get('/ping', lambda request: aiohttp.web.Response(text='pong'))
runner = aiohttp.web.AppRunner(app) runner = aiohttp.web.AppRunner(app)