Ask coding questions

← Back to all posts
Invalid syntax
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?

Voters
GiuseppeB1
Comments
hotnewtop
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

Hopefully i was able to help you.

VulcanWM

You forgot the colon at the send of line 15