discord_bot.py icon indicating copy to clipboard operation
discord_bot.py copied to clipboard

Bug after installation

Open daodevinc opened this issue 9 years ago • 5 comments

Hi !

I have follow the tutorial, and when i lauch the py :

File "index.py", line 25
    bot.load_extension(f"cogs.{name}")
                                    ^
SyntaxError: invalid syntax

Thx

daodevinc avatar Nov 21 '17 14:11 daodevinc

Check your python version by typing in CMD/Terminal: python -V Image

It must be 3.6 or above

AlexFlipnote avatar Nov 21 '17 14:11 AlexFlipnote

Python 2.7.3 on linux2 ;(

daodevinc avatar Nov 21 '17 14:11 daodevinc

Sadly you are required to have 3.6 or above to use it.

AlexFlipnote avatar Nov 21 '17 14:11 AlexFlipnote

I don't, i have always a bot for Discord, he don't support py >3.X.. :(

daodevinc avatar Nov 21 '17 15:11 daodevinc

Well, I'll close this for now, as you only need to upgrade python to get it.

AlexFlipnote avatar Nov 21 '17 15:11 AlexFlipnote