1
I cant find the error
TheSpeakingLava (0)

I cant find the error in my code... It just says invalid syntax, but i cant find whats wrong.... https://im-boi2.thespeakinglava.repl.run

You are viewing a single comment. View All
Answered by ArchieMaclean (523) [earned 5 cycles]
View Answer
1
ArchieMaclean (523)

@TheSpeakingLava On line 45, you had

  await ctx.send(f'Question: {question}\nAnswer: {random.choice(responses)}')

but having random.choice in there doesn't work. So instead you can do

response = random.choice(responses)
await ctx.send(f'Question: {question}\nAnswer: {response}')