async def mcskin(self, ctx, person): try: uuid = mcuuid.MCUUID(person).uuid except ValueError: await ctx.send( 'Ayo there\'s no one with that name what do you mean') else: r = requests.get(f'https://crafatar.com/skins/{str(uuid)}') with open(f'{temp_path}\\{str(uuid)}_skin.png', 'wb') as outfile: outfile.write(r.content) await ctx.send( file=discord.File(f'{temp_path}\\{str(uuid)}_skin.png')) os.remove(f'{temp_path}\\{str(uuid)}_skin.png')
async def mcuuid(self, ctx, person): try: await ctx.send(mcuuid.MCUUID(person).uuid) except ValueError: await ctx.send( 'Ayo there\'s no one with that name what do you mean')