Skip to content
Advertisement

FIXED – on_message raising SyntaxError when called

This code normally works for me when I use it, but it stopped working. First with other async definitions, but now on_message isn’t working!

JavaScript

WizBot is the name of my bot.Also if it is helpful, I am using repl.it. on_ready() works though, but I get a pyflakes SyntaxError for the d in the def on_message(message). View error message

JavaScript

Can someone help?

Advertisement

Answer

You miss a bracket in the line

JavaScript

It should be:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement