title: How to open an event loop in discord.py?
body: <p>I am making a loop for my discord bot and it will DM the user every ten minutes. I keep getting an error that my event loop is closed. I do not know how to open it. Help will be very appreciated. My code is shown below.</p>
  <pre><code>@bot.command(aliases=['r10', 'R10'])
  async def remind10(ctx, user):
      mbed = discord.Embed(title = 'Reminding you every ten minutes.', description = 'If you want to deactivate this, please say the command pp!stopremind')
      mbed.set_author(name = 'Procrastination Police')
      await ctx.send(embed=mbed)
      global remind_loop
      @tasks.loop(minutes=10)
      async def remind_loop():
          await user.send('Reminding you to stop procrastinating?')
  </code></pre>