title: Modify global variable from async function in python
body: <p>I'm making a Discord bot in Python using discord.py.
  I'd like to set/modify a global variable from an async thread.</p>
  
  <pre><code>message = ""
  
  @bot.command()
  async def test(ctx, msg):
      message = msg
  </code></pre>
  
  <p>However this doesn't work. How can I achieve something that does this?</p>