title: How to make a restart command for my discord.py bot
body: <p>so far what I've got is:</p>
  <pre><code>def restart_program():
      python = sys.executable
      os.execl(python, python, * sys.argv)
  
  @bot.command()
  async def restart(ctx):
      message = await ctx.send(&quot;Restarting... Allow up to 5 seconds&quot;)
      restart_program()
  </code></pre>
  <p>This works, however I'm wondering how I can make it edit the &quot;Restarting... Allow up to 5 seconds&quot; message to say something like &quot;Bot is back up&quot; after it's restarted. Is this possible, and if so, how could I do this?</p>