title: Restart command for Discord.py
body: <p>This code:</p>
  <pre><code>await Bot.close()
  </code></pre>
  <p>is used to logout the Bot.<br>
  The problem is that i want write a restart command, like this:</p>
  <pre><code>@Bot.command()
  async def OFF(ctx, seconds:float):
      await ctx.message.delete()
      embed = Embed(title = &quot;OFF&quot;, description = f&quot;{ctx.message.author.mention} turned off me for {round(seconds)} seconds&quot;, color = Color.red())
      await ctx.send(embed = embed)
      await Bot.close()
      await sleep(seconds)
      await Bot.login(token)
      embed = Embed(title = &quot;Turned on&quot;, description = f&quot;I came back after {round(seconds)}&quot;, color = Color.green())
      await ctx.send(embed = embed)
  </code></pre>
  <p>The problem is that when the Bot closes, the shell must be restarted, otherwise the program won't keep running after {seconds}sec.<br></p>
  <p>How could i create a command which restarts the Bot?<br>
  Thanks in advance</p>