Ask coding questions

← Back to all posts
Greenking BOT
Greenking (0)

ok so I've been trying to program my bot for discord but this error keeps popping up saying invalid syntax on line 15 can anyone help me fix it i don't know what's goin on

Answered by IcynDevz (765) [earned 5 cycles]
View Answer
Comments
hotnewtop
IcynDevz (765)

Your missing a : after if message.content.startswith('G!hello')

Greenking (0)

@IcynHackz thanks but now on line 16 its saying invalid on line 16 im sorry for being a bother

novaflippers (66)

You spelled yield wrong on line 16.

Greenking (0)

@novaflippers and now its also saying yield is an outside function

novaflippers (66)

@Greenking nah it good, we all make mistakes