title: Discord.py - remind command with multiple time included
body: <p>I'm trying to make a discord bot with a remind command. I would like the remind command to be able to do like <code>;remind 12.5m</code> or <code>;remind 1h 12m 30s</code>. but right now the remind command can only be used like <code>;remind 45m</code>, <code>;remind 2h</code>, <code>;remind 9m</code>. basically the command only works if only one time is included. I'm not sure how to make the command work with multiple time included, can someone help me?</p>
  <pre class="lang-py prettyprint-override"><code>@client.command(case_insensitive=True, aliases=[&quot;reminder&quot;, &quot;rm&quot;])
  async def remind(ctx, time, *, reminder=&quot;something&quot;):
      user = ctx.author.mention
      channel = client.get_channel(12345678912345)
      seconds = 0
      log = discord.Embed(color=0xe9a9a9, timestamp=datetime.utcnow())
      embed = discord.Embed(color=0xe9a9a9)
      if time.lower().endswith(&quot;d&quot;):
        seconds += int(time[:-1]) * 60 * 60 * 24
        counter = f&quot;{seconds // 60 // 60 // 24} days&quot;
      if time.lower().endswith(&quot;h&quot;):
        seconds += int(time[:-1]) * 60 * 60
        counter = f&quot;{seconds // 60 // 60} hours&quot;
      if time.lower().endswith(&quot;m&quot;):
        seconds += int(time[:-1]) * 60
        counter = f&quot;{seconds // 60} minutes&quot;
      if time.lower().endswith(&quot;s&quot;):
        seconds += int(time[:-1])
        counter = f&quot;{seconds} seconds&quot;
      if seconds == 0 or seconds &gt; 7776000:
        await ctx.send(&quot;Please specify a valid time.&quot;)
      if reminder is None:
        await ctx.send(&quot;Please tell me what to remind you.&quot;)
      else:
        log.set_author(name=f&quot;{ctx.author.display_name}#{ctx.author.discriminator} - Remind&quot;, icon_url=ctx.author.avatar_url)
        log.set_footer(text=f&quot;{counter} | {reminder}&quot;)
        embed.add_field(
            name=&quot;**Reminder**&quot;,
            value=f&quot;{user}, you asked me to remind you to `{reminder}` `{counter}` ago.&quot;
          )
        await ctx.send(f&quot;Alright, I will remind you about `{reminder}` in `{counter}`.&quot;)
        await asyncio.sleep(seconds)
        await ctx.author.send(embed=embed)
        await channel.send(embed=log)
        return
  </code></pre>