title: RuntimeError: Event loop stopped before Future completed
body: <p>I am trying to set up a schedule to run a subroutine. I am trying to use the subroutine example to send a message to a discord channel when the schedule is triggered. At first I attempted to try and just send the message but got an error. I then tried looking into how to solve this and have tried different ways using asyncio all of which have not worked.</p>
  
  <p>If anyone is able to give me any pointers on how I could do this then it would be much appreciated.</p>
  
  <pre class="lang-py prettyprint-override"><code>import discord
  import asyncio
  import time
  import schedule # pip install schedule
  
  client = discord.Client()
  @client.event
  async def on_ready():
      print("Connected!")
  
  async def example(message):
      await client.get_channel(CHANNEL ID).send(message)
  
  client.run(SECRET KEY)
  
  def scheduledEvent():
      loop = asyncio.get_event_loop()
      loop.run_until_complete(example("Test Message"))
      loop.close()
  
  schedule.every().minute.do(scheduledEvent)
  
  while True:
      schedule.run_pending()
      time.sleep(1)
  </code></pre>