'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?
To use await, it needs to be inside of an asynchronous function, this will give you an error:
def hello(message): await message.channel.send("Hello!")
but this won't:
async def hello(message): await message.channel.send("Hello!")
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?