Open solidspidey opened 1 year ago
you try "pip install discord"? might be pip3 or "python3 -m pip install discord"
oh ok, sorry I am python noob, didnt realize have to install dependencies. I just installed discord, Spotipy and dotenv. Now I am seeing this error.
python main.py
[2023-09-07 15:49:16] [INFO ] discord.client: logging in using static token
Traceback (most recent call last):
File "main.py", line 67, in
I advise checking the readme for instructions. the env should be a .env (assuming linux), you would have to set environment variables on Windows. It looks like it's unable to read your token values (env file). You can also optionally hard code them.
ok thank you, I'm not a coder or anything and just stumbled upon this via google and trying to add this to one of my discord servers.
I'm on Windows, I guess I have to add a environment variable for .Env? Then maybe the script will read my env.txt file?
rename your env.txt
file to .env
and it should work. The module dotenv
should read the content of .env
file without depending on the platform.
Hi,
When I try to run script I get the below. How do I fix this?
I am running cmd prompt from folder which includes env.txt file with all of my data.
python main.py Traceback (most recent call last): File "main.py", line 5, in
import discord
ModuleNotFoundError: No module named 'discord'