title: Discord bot codes not working (python). How can I fix it?
body: <p>I recently started coding and decided a good, fun way to learn would be to make a Discord bot. So I did some coding, learnt from a Youtube video and it was all going well but now none of my codes are working and the bot is basically useless. Could someone please look at this code and tell me what's wro</p>
  <pre><code>import discord
  import os
  import requests
  import json
  import random
  
  client = discord.Client()
  
  @client.event
  async def on_ready():
      print('We have logged in as {0.user}'.format(client))
  
  @client.event
  async def on_message(message):
      if message.author == client.user:
          return
  
      if message.content.startswith('Hello'):
          await message.channel.send('Hi!')
  
  client.run(os.getenv('TOKEN'))
  
  
  sad_words = [&quot;sad&quot;,&quot;alone&quot;,&quot;scared&quot;,&quot;depressed&quot;,&quot;SAD&quot;,&quot;Sad&quot;]
  
  starter_encouragements = [
    &quot;You got this. I know you do &quot;,
    &quot;I know it's hard, but you'll get through this :)&quot;,
  ]
  
  def get_quote():
    response = requests.get(&quot;https://zenquotes.io/api/random&quot;)
    json_data = json.loads(response.text)
    quote = json_data[0]['q'] + &quot; -&quot; + json_data[0]['a']
    return(quote)
  
  @client.event
  async def on_ready():
    print('We have logged in as {0.user}'.format(client))
  
  @client.event
  async def on_message(message):
    if message.author == client.user:
      return
  
    msg = message.content
  
    if message.content.startswith('inspire'):
      quote = get_quote()
      await message.channel.send(quote)
  
    if any(word in msg for word in sad_words):
      await message.channel.send(random.choice(starter_encouragements))
  
  
  client.run(os.getenv('TOKEN'))
  </code></pre>
  <p>Thanks so much</p>