Exit code: 101 in Windows 11, Discord Bot #2783
Answered
by
jamesbt365
Patatas8800
asked this question in
Q&A
-
Hi, I have a problem with my code :
main.rs :
(i'm not use "DISCORD_TOKEN" in my realy code) Cargo.toml :
|
Beta Was this translation helpful? Give feedback.
Answered by
jamesbt365
Mar 7, 2024
Replies: 1 comment 2 replies
-
You have not provided an environment variable with the discord bots token so the bot cannot start. I'm not sure if i'm right here because i don't use Windows but you should be able to set one temporarily with |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
GnomedDev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have not provided an environment variable with the discord bots token so the bot cannot start. I'm not sure if i'm right here because i don't use Windows but you should be able to set one temporarily with
set DISCORD_TOKEN=bot_token
, obviously substituting that for your actual bot token, or you can setupdotenvy
or another tool to do this for you.