src/main.py
async def poe_lab_ladder(ctx):
    """
        poe_lab_ladder() will return the top 3 players on the Path of Exile Lab ladder
    """
    api_request = requests.get("http://api.pathofexile.com/ladders/"
                               "League?type=labyrinth&difficulty=Merciless")

    if api_request.status_code == 200:
        api_json = api_request.json()

        first = discord.Embed(title=f"1st Place\n{api_json['entries'][0]['character']['name']}",
                              description=f"{api_json['entries'][0]['character']['class']}\n "
                                          f"Time: {api_json['entries'][0]['time']}")

        second = discord.Embed(title=f"2nd Place\n{api_json['entries'][1]['character']['name']}",
                               description=f"{api_json['entries'][1]['character']['class']}\n"
                                           f"Time: {api_json['entries'][1]['time']}")

        third = discord.Embed(title=f"3rd Place\n{api_json['entries'][2]['character']['name']}",
                              description=f"{api_json['entries'][2]['character']['class']}\n "
                                          f"Time: {api_json['entries'][2]['time']}")

        await ctx.send(embed=first)
        await ctx.send(embed=second)
        await ctx.send(embed=third)

        poe_lab_ladder() will return the top 3 players on the Path of Exile Lab ladder
    
poe_lab_ladder() will return the top 3 players on the Path of Exile Lab ladder
poe_lab_ladder () will return the top 3 players on the Path of Exile Lab ladder
async def poe_lab_ladder(ctx):
    api_request = requests.get("http://api.pathofexile.com/ladders/"
                               "League?type=labyrinth&difficulty=Merciless")
    if api_request.status_code == 200:
        api_json = api_request.json()
        first = discord.Embed(title=f"1st Place\n{api_json['entries'][0]['character']['name']}",
                              description=f"{api_json['entries'][0]['character']['class']}\n "
                                          f"Time: {api_json['entries'][0]['time']}")
        second = discord.Embed(title=f"2nd Place\n{api_json['entries'][1]['character']['name']}",
                               description=f"{api_json['entries'][1]['character']['class']}\n"
                                           f"Time: {api_json['entries'][1]['time']}")
        third = discord.Embed(title=f"3rd Place\n{api_json['entries'][2]['character']['name']}",
                              description=f"{api_json['entries'][2]['character']['class']}\n "
                                          f"Time: {api_json['entries'][2]['time']}")
        await ctx.send(embed=first)
        await ctx.send(embed=second)
        await ctx.send(embed=third)
async def poe_lab_ladder ( ctx ) : api_request = requests . get ( "http://api.pathofexile.com/ladders/" "League?type=labyrinth&difficulty=Merciless" ) if api_request . status_code == 200 : api_json = api_request . json ( ) first = discord . Embed ( title = f"1st Place\n{api_json['entries'][0]['character']['name']}" , description = f"{api_json['entries'][0]['character']['class']}\n " f"Time: {api_json['entries'][0]['time']}" ) second = discord . Embed ( title = f"2nd Place\n{api_json['entries'][1]['character']['name']}" , description = f"{api_json['entries'][1]['character']['class']}\n" f"Time: {api_json['entries'][1]['time']}" ) third = discord . Embed ( title = f"3rd Place\n{api_json['entries'][2]['character']['name']}" , description = f"{api_json['entries'][2]['character']['class']}\n " f"Time: {api_json['entries'][2]['time']}" ) await ctx . send ( embed = first ) await ctx . send ( embed = second ) await ctx . send ( embed = third )
poe_lab_ladder() will return the top 3 players on the Path of Exile Lab ladder
poe_lab_ladder () will return the top 3 players on the Path of Exile Lab ladder
"""
        poe_lab_ladder() will return the top 3 players on the Path of Exile Lab ladder
    """
ctx