Answer the question
In order to leave comments, you need to log in
SyntaxError: 'await' outside function, how to fix?
@bot.command(pass_context = True)
async def Test(ctx):
a = 30
b = 40
if a < b:
await ctx.send('А меньше Б')
File "take.py", line 44
await ctx.send('А меньше Б')
^
SyntaxError: 'await' outside function
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question