Skip to content
Sign upLog in
← Back to Community

Invalid syntax

Profile icon
GiuseppeB1

I'm currently creating a simple discord bot for my friends, i did the code but when i click run it says "SyntaxError: invalid syntax" please can someone help me?
IMG_20210911_110807

Voters
Profile icon
GiuseppeB1
Comments
hotnewtop
Profile icon
WWEMONSTERMONST

Well the error you are having is because of not putting : after the if statement on line 15.
It should be written like this

# You are missing this colon ↓ if message.content.startswith('%ciap'): await message.channel.send('Salom')

Hopefully i was able to help you.

Profile icon
VulcanWM

You forgot the colon at the send of line 15