Nico-Pergande / np_statusbot

2 stars 2 forks source link

Error #1

Open Tom-NL opened 2 years ago

Tom-NL commented 2 years ago

getting the bot not working, continuous node event errors. What can I do about it

[Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds... [Pterodactyl Daemon]: Updating process configuration files... [Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... container@pterodactyl~ Server marked as starting... [Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete... [Pterodactyl Daemon]: Finished pulling Docker container image :/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 [ -f /home/container/package.json ]; then /usr/local/bin/npm install --production; fi; /usr/local/bin/node /home/container/${BOT_JS_FILE} npm WARN bot.squid-dev.eu@1.0.0 No description npm WARN bot.squid-dev.eu@1.0.0 No repository field.

audited 29 packages in 4.139s

1 package is looking for funding run npm fund for details

found 0 vulnerabilities

internal/modules/cjs/loader.js:818 throw err; ^

Error: Cannot find module 'node:events' Require stack:

[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon]: Exit code: 1 [Pterodactyl Daemon]: Out of memory: false [Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago. [Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds... [Pterodactyl Daemon]: Updating process configuration files... [Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... container@pterodactyl~ Server marked as starting... [Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete... [Pterodactyl Daemon]: Finished pulling Docker container image :/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 [ -f /home/container/package.json ]; then /usr/local/bin/npm install --production; fi; /usr/local/bin/node /home/container/${BOT_JS_FILE} npm WARN bot.squid-dev.eu@1.0.0 No description npm WARN bot.squid-dev.eu@1.0.0 No repository field.

added 29 packages from 89 contributors and audited 29 packages in 16.603s

1 package is looking for funding run npm fund for details

found 0 vulnerabilities

internal/modules/cjs/loader.js:818 throw err; ^

Error: Cannot find module 'node:events' Require stack:

[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon]: Exit code: 1 [Pterodactyl Daemon]: Out of memory: false [Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds... [Pterodactyl Daemon]: Updating process configuration files... [Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... container@pterodactyl~ Server marked as starting... [Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete... [Pterodactyl Daemon]: Finished pulling Docker container image :/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 [ -f /home/container/package.json ]; then /usr/local/bin/npm install --production; fi; /usr/local/bin/node /home/container/${BOT_JS_FILE} npm WARN bot.squid-dev.eu@1.0.0 No description npm WARN bot.squid-dev.eu@1.0.0 No repository field.

audited 29 packages in 4.401s

1 package is looking for funding run npm fund for details

found 0 vulnerabilities

internal/modules/cjs/loader.js:818 throw err; ^

Error: Cannot find module 'node:events' Require stack:

[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ---------- [Pterodactyl Daemon]: Exit code: 1 [Pterodactyl Daemon]: Out of memory: false [Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.

Kayne64 commented 2 years ago

do npm i and it should fix it

Tom-NL commented 2 years ago

done but then other errors come back

Tom-NL commented 2 years ago

Error: Cannot find module 'C:\Users\Administrator\Downloads\np_statusbot-main\index.jef'  at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)  at Function.Module._load (node:internal/modules/cjs/loader:778:27)  at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)  at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } PS C:\Users\Administrator\Downloads\np_statusbot-main> node index.js C:\Users\Administrator\Downloads\np_statusbot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:245 throw new Error(WSCodes[error.code]); ^

Error [DISALLOWED_INTENTS]: Privileged intent provided is not enabled or whitelisted. at WebSocketManager.createShards (C:\Users\Administrator\Downloads\np_statusbot-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:245:15) at async Client.login (C:\Users\Administrator\Downloads\np_statusbot-main\node_modules\discord.js\src\client\Client.js:254:7) {

} PS C:\Users\Administrator\Downloads\np_statusbot-main>

Nico-Pergande commented 2 years ago

it has to be index.js NOT index,jef

Nico-Pergande commented 2 years ago

you have to activate this to intents at the discord-bot-site too image

Tom-NL commented 2 years ago

should I have it on or off?

Nico-Pergande commented 2 years ago

both has to on

Tom-NL commented 2 years ago

I did that and if it doesn't update or idk how can I notice because when I turn off the server everything stays green

and see this message as well: Error: AxiosError: Request failed with status code 404

Tom-NL commented 2 years ago

what is a solution for that?