(PYTHON) Please solve this syntax error. I can't seem to get around it

import discord
import os


client = discord.Client()


@client.event

async def on_ready():
  print('We have Logged In as {0.user}'.format(client))

#Problematic Section--------------------------------------
@client.event
async def on_message(message):
  if message.author == client.user: 
    return
  if message.content.startswith('$'):
  await message.channel.send("")
#Problematic Section--------------------------------------





client.run(os.getenv('ENCRYPT'))

I solved it! A little indentation :sweat_smile:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.