title: Access variables between commands with discord.py
body: <p>I have this (overly simplified) Discord bot</p>
  
  <pre><code>voting_enabled = False
  
  @bot.command()
  async def start():
      voting_enabled = True
  
  @bot.command()
  async def finish():
      voting_enabled = False
  
  @bot.command()
  async def vote():
      if voting_enabled:
          # Do something
      else:
          # Do something else
  </code></pre>
  
  <h2>The problem</h2>
  
  <p>When I call call the <code>vote()</code> command, it always goes through the else part of the code. Even after calling the <code>start()</code> command</p>
  
  <h2>What I want to achieve</h2>
  
  <p>I want that the <code>vote()</code> command behave differently depending on if the other two commands where called previously</p>
  
  <h2>What I tried</h2>
  
  <p>I tried using the <code>global</code> keyword like this on the first line</p>
  
  <pre><code>global voting_enabled
  voting_enabled = False
  </code></pre>
  
  <p>But it did nothing</p>