Ask coding questions

← Back to all posts
i need help
Flare02 (4)

if any (word in msg for dumb_words)
await messege.channel.send(reply_1)

it says that its a invaild synex can aybody help?

Comments
hotnewtop
RYANTADIPARTHI (6000)

Solution

you need to add a : at the end of line 32. Since it's and if` statement.

if any (word in msg for dumb_words): # added a :
   await messege.channel.send(reply_1)

like that.
That should work

InvisibleOne (2683)

aren't you forgetting a :