my discord bot is not working
Posted by user_dcdarv in general.
[11:39:40] Server marked as offline [11:39:41] [Wispbyte]: Checking server disk space usage, this could take a few seconds... [11:39:41] [Wispbyte]: Updating process configuration files... [11:39:41] [Wispbyte]: Ensuring file permissions are set correctly, this could take a few seconds... [11:39:41] Server marked as starting [11:39:41] [11:39:41] \ \ / ( ) [11:39:41] \ \ /\ / / / ' \ ' \ / \ [11:39:41] \ V V / \ \ ) ) / [11:39:41] \ /\ / / . / . / \ , \ \ [11:39:41] / [11:39:41] Your server is currently starting! Enjoy using Wispbyte [11:39:42] Pulling from parkervcp/yolks [11:39:42] Status: Image is up to date for ghcr.io/parkervcp/yolks:nodejs 19 [11:39:42] Digest: sha256:d71a8b93c9bafa202787760420ffa6973dd035fe4a6934821d1979910f119b46 [11:39:42] [Wispbyte] Docker image ready. [11:39:44] v19.9.0 [11:39:44] Server marked as running [11:39:44] :/home/container$ if [[ d .git ]] && [[ ${AUTO UPDATE} == "1" ]]; then git pull; fi; if [[ ! z ${NODE PACKAGES} ]]; then /usr/local/bin/npm install ${NODE PACKAGES}; fi; if [[ ! z ${UNNODE PACKAGES} ]]; then /usr/local/bin/npm uninstall ${UNNODE PACKAGES}; fi; if [ f /home/container/package.json ]; then /usr/local/bin/npm install; fi; /usr/local/bin/node /home/container/${JS FILE} [11:39:46] up to date, audited 26 packages in 2s [11:39:46] 7 packages are looking for funding [11:39:46] run for details [11:39:46] found 0 vulnerabilities [11:39:48] Missing DISCORD TOKEN environment variable! [11:39:48] Server marked as offline [11:39:48] [Wispbyte]: Detected server process in a crashed state! [11:39:48] [Wispbyte]: Exit code: 1 [11:39:48] [Wispbyte]: Out of memory: false [11:39:49] [Wispbyte]: Checking server disk space usage, this could take a few seconds... [11:39:49] [Wispbyte]: Updating process configuration files... [11:39:49] [Wispbyte]: Ensuring file permissions are set correctly, this could take a few seconds... [11:39:49] Server marked as starting [11:39:49] [11:39:49] \ \ / ( ) [11:39:49] \ \ /\ / / / ' \ ' \ / \ [11:39:49] \ V V / \ \ ) ) / [11:39:49] \ /\ / / . / . / \ , \ \ [11:39:49] / [11:39:49] Your server is currently starting! Enjoy using Wispbyte [11:39:50] Pulling from parkervcp/yolks [11:39:50] Status: Image is up to date for ghcr.io/parkervcp/yolks:nodejs 19 [11:39:50] Digest: sha256:d71a8b93c9bafa202787760420ffa6973dd035fe4a6934821d1979910f119b46 [11:39:50] [Wispbyte] Docker image ready. [11:39:51] v19.9.0 [11:39:51] Server marked as running [11:39:51] :/home/container$ if [[ d .git ]] && [[ ${AUTO UPDATE} == "1" ]]; then git pull; fi; if [[ ! z ${NODE PACKAGES} ]]; then /usr/local/bin/npm install ${NODE PACKAGES}; fi; if [[ ! z ${UNNODE PACKAGES} ]]; then /usr/local/bin/npm uninstall ${UNNODE PACKAGES}; fi; if [ f /home/container/package.json ]; then /usr/local/bin/npm install; fi; /usr/local/bin/node /home/container/${JS FILE} [11:39:53] up to date, audited 26 packages in 2s [11:39:53] 7 packages are looking for funding [11:39:53] run for details [11:39:53] found 0 vulnerabilities [11:39:55] Missing DISCORD TOKEN environment variable! [11:39:55] Server marked as offline [11:39:56] [Wispbyte]: Detected server process in a crashed state! [11:39:56] [Wispbyte]: Exit code: 1 [11:39:56] [Wispbyte]: Out of memory: false [11:39:56] [Wispbyte]: Aborting automatic restart, last crash occurred less than 60 seconds ago. this is coming when i start the bot ,although i added the token erfectly
Replies
Byte
Your bot is exiting because it can’t read ; this isn’t a node or memory issue. The variable name must match exactly, including capitalization. 1. Open Startup and add or check the environment variable named . Put the token in its value, save, then start the server. 2. Make sure your code reads (not or another name). 3. If you’re using a file instead, make sure it’s in the server’s root and your code loads it with . Don’t post your token here. If you’ve shared it anywhere public, regenerate it in the Discord Developer Portal. See Startup settings.
user_dcdarv
could you please clarify the 2 step here