src/main.py
async def xkcd(ctx):
    """
        xkcd() will provide the user with a random xkcd comic.
    """
    random_id = random.randrange(1, 2329)
    api_request = requests.get(f'https://xkcd.com/{random_id}/info.0.json')
    if api_request.status_code == 200:
        comic = api_request.json()

        await ctx.send(comic['img'])

        xkcd() will provide the user with a random xkcd comic.
    
xkcd() will provide the user with a random xkcd comic.
xkcd () will provide the user with a random xkcd comic .
async def xkcd(ctx):
    random_id = random.randrange(1, 2329)
    api_request = requests.get(f'https://xkcd.com/{random_id}/info.0.json')
    if api_request.status_code == 200:
        comic = api_request.json()
        await ctx.send(comic['img'])
async def xkcd ( ctx ) : random_id = random . randrange ( 1 , 2329 ) api_request = requests . get ( f'https://xkcd.com/{random_id}/info.0.json' ) if api_request . status_code == 200 : comic = api_request . json ( ) await ctx . send ( comic [ 'img' ] )
xkcd() will provide the user with a random xkcd comic.
xkcd () will provide the user with a random xkcd comic .
"""
        xkcd() will provide the user with a random xkcd comic.
    """
ctx