@commands.command(name='xkcd', brief='send xkcd comic')
async def xkcd(self, ctx, args=None):
    '\n        send xkcd comic\n        *xkcd -> sends newest comic\n        *xkcd random -> sends random comic\n        *xkcd [number] -> sends a specific comic\n        '
    url = None
    if (not args):
        url = 'http://xkcd.com/info.0.json'
    elif args.isdigit():
        url = f'http://xkcd.com/{int(args)}/info.0.json'
    elif (args.lower() == 'random'):
        (result, error) = (await get_json('http://xkcd.com/info.0.json'))
        if error:
            (await ctx.send(error))
            return
        number = randint(0, result['num'])
        url = f'http://xkcd.com/{number}/info.0.json'
    (result, error) = (await get_json(url))
    if error:
        (await ctx.send(error))
        return
    embed = discord.Embed(color=choice(self.colours))
    embed.set_image(url=result['img'])
    (await ctx.send(embed=embed))
send xkcd comic
*xkcd -> sends newest comic
*xkcd random -> sends random comic
*xkcd [number] -> sends a specific comic
@commands.command(name='xkcd', brief='send xkcd comic')
async def xkcd(self, ctx, args=None):
    '\n        send xkcd comic\n        *xkcd -> sends newest comic\n        *xkcd random -> sends random comic\n        *xkcd [number] -> sends a specific comic\n        '
    url = None
    if (not args):
        url = 'http://xkcd.com/info.0.json'
    elif args.isdigit():
        url = f'http://xkcd.com/{int(args)}/info.0.json'
    elif (args.lower() == 'random'):
        (result, error) = (await get_json('http://xkcd.com/info.0.json'))
        if error:
            (await ctx.send(error))
            return
        number = randint(0, result['num'])
        url = f'http://xkcd.com/{number}/info.0.json'
    (result, error) = (await get_json(url))
    if error:
        (await ctx.send(error))
        return
    embed = discord.Embed(color=choice(self.colours))
    embed.set_image(url=result['img'])
    (await ctx.send(embed=embed))