'await' outside function error

I've encountered a very frustrating delay. I'm using the python environment and I'm having an error saying "SyntaxError: 'await' outside function". Does anyone know how to fix this?

You are viewing a single comment. View All

ok - well, the error doesn't show up anymore, but now the bot won't respond to the ay!newr and ay!delr commands. (newr stands for 'new roast' and delr stands for 'delete roast')

Does anyone have any fixes for this?