#now it tells me this token must be of type str, not NoneType

1 messages · Page 1 of 1 (latest)

solid mulch
#

install py-cord==2.0.0rc1

#

have you used pip...?

dark heath
#

because you need to be more specific

#

you want to install it

#

just invoking pip doesnt help, you have to tell it what to do

vivid kraken
#

Are you loading your .env with load_dotenv() (python-dotenv)

#

Send it

#

@quasi cloud send it as a txt file

#

Because I can’t view it

#

main.txt

dark heath
#

well, there goes your token

#

might wanna reset that

#

also you did it incorrectly

#

also env files work as following

TOKEN=blahblahblah
SOME_OTHER_VARIABLE=penis```
#

by doing it properly

dark heath
dark heath
#

by doing it properly

dark heath
#

how is your env file structured?

#

no the env file

#

the place where you have the token (without it of course)

#

copy paste the contents damnit

#

no thats the fucking documentation for how to use os.getenv

#

why did you copy paste it?

#

its documentation on how to use it

#

read it