title: How do I make a progress bar that shows how far along the music has been played in discord.py
body: <p>I have made a discord music bot using python. I would like to know how to get the timestamp of how far along the track has been played.</p>
  <p>Here is the now_playing command</p>
  <pre><code>@commands.command(aliases=['np', 'now'], description='Shows the current track being played')
  async def nowplaying(self, ctx):
      # This command does not prevent users from outside the voice channel from accessing the command since it is view-only
      vc = discord.utils.get(self.bot.voice_clients, guild=ctx.guild)
  
      # Basic responses to false calls
      if vc is None:
          await send_error_embed(ctx, description='The Player is not connected to the voice channel')
          return
  
      if not vc.is_playing():
          await send_error_embed(ctx, description='No audio is being played')
          return
  
      else:
          # Response embed
          video = pafy.new(url=self.now_playing_url[ctx.guild.id])
          embed = discord.Embed(description='Now Playing', colour=discord.Colour.dark_teal())
          if video.author == video.username:
              embed.add_field(name='Track Name:',
                              value=f'[{self.now_playing[ctx.guild.id]}]({self.now_playing_url[ctx.guild.id]}) by [{video.author}](https://youtube.com/c/{video.author})')
          else:
              embed.add_field(name='Track Name:',
                              value=f'[{self.now_playing[ctx.guild.id]}]({self.now_playing_url[ctx.guild.id]}) by [{video.author}](https://youtube.com/channel/{video.username})')
          embed.set_author(name=self.bot.user.name, icon_url=self.bot.user.avatar)
          embed.set_thumbnail(url=video.bigthumbhd)
          embed.set_footer(text=f'Duration: {video.duration}, : {video.viewcount}, : {video.likes}')
          await ctx.send(embed=embed)
  </code></pre>