Welcome to the forum!
The main issue I see, are indentation errors.
Indentation is really important in python.
Right now, you have all of this content inside the 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('Hello!')
client.run(os.getenv('TOKEN'))
That is the main thing you will need to fix.
Also, you will need to delete your env file, because right now everyone can see your secret token bot.
You do not want to expose your secret keys to the world because people get a hold your bot which is bad.
Read through my post on how to add env variables in replit.
You will also see how I do indentation in python.