i was mading my discord bot but when i ran the code it sent me syntax error on
“async def com2(ctx):” stroke. error in marked word
from discord.ext import commands
from discord.ext.commands import Bot
Bot = commands.Bot(command_prefix='')
async def com(ctx):
async def com2(ctx):
What version of Python are you running?
async def is only legal starting in Python 3.5 so if you are running
something older you need to upgrade to use that syntax.
If that is not the problem, then please copy and paste the exact syntax
error you are getting so we can read what it says.
By the way, your code also misspells “discord” as “discrod”, so you will
get import errors on those lines.
Thanks, Steven. But how can I “upgrade” my python?