Stuck On the discord bot tutorial

So i am stuck on the discord bot tutorial, for python ( Code a Discord Bot with Python - Host for Free in the Cloud - YouTube ). I cannot figure out the part where it says:
if message.content.startswith(‘$hello’):
It gives me two errors: On the top it says ‘Message undefined’, on the bottom, it say ‘await outside of function’. can someone help? I am new to python, this being my first project. Help would be appreciated : )

We need to see your code. If it is on Replit post a link to it.

Also, make sure you read the comments on the video including the pin one.

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