(Using Python 3.6)
Hello !
I'm actually making a Python Discord bot (for a school project) and i'm facing a little problem at this part of the code:
async def on_message(self, message):
if not message.author.bot:
ctx = await bot.get_context(message)
await self.invoke(ctx)
Here is the error message:
File "/Users/dorian/Desktop/ISN/ISNbotv2/bot.py", line 47
async def on_message(self, message):
^
SyntaxError: invalid syntax
[Finished in 0.1s with exit code 1]
[shell_cmd: python -u "/Users/dorian/Desktop/ISN/ISNbotv2/bot.py"]
[dir: /Users/dorian/Desktop/ISN/ISNbotv2]
[path:
/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]
Weirdly when I launch the script with my PC the bot is working, unfortunatly I only have this error only on the MAC I HAVE to use for my school project.
Thanks for your help (and sorry if I made english mistakes, not my main langage)