Doesn't run with systemmd

im trying to get my bot to auto start with my computer but when i run the startup script through systemmd i get this error using 14.8.0
Aug 12 20:50:07 JPH systemd[1]: Started discord bot.
Aug 12 20:50:07 JPH node[56518]: /home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/client/BaseClient.js:29
Aug 12 20:50:07 JPH node[56518]: userAgentAppendix: options.rest?.userAgentAppendix
Aug 12 20:50:07 JPH node[56518]: ^
Aug 12 20:50:07 JPH node[56518]: SyntaxError: Unexpected token '.'
Aug 12 20:50:07 JPH node[56518]: at wrapSafe (internal/modules/cjs/loader.js:915:16)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:963:27)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH node[56518]: at Module.load (internal/modules/cjs/loader.js:863:32)
Aug 12 20:50:07 JPH node[56518]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Aug 12 20:50:07 JPH node[56518]: at Module.require (internal/modules/cjs/loader.js:887:19)
Aug 12 20:50:07 JPH node[56518]: at require (internal/modules/cjs/helpers.js:74:18)
Aug 12 20:50:07 JPH node[56518]: at Object.<anonymous> (/home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/index.js:6:22)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:999:30)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH systemd[1]: discordbot.service: Main process exited, code=exited, status=1/FAILURE
Aug 12 20:50:07 JPH systemd[1]: Started discord bot.
Aug 12 20:50:07 JPH node[56518]: /home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/client/BaseClient.js:29
Aug 12 20:50:07 JPH node[56518]: userAgentAppendix: options.rest?.userAgentAppendix
Aug 12 20:50:07 JPH node[56518]: ^
Aug 12 20:50:07 JPH node[56518]: SyntaxError: Unexpected token '.'
Aug 12 20:50:07 JPH node[56518]: at wrapSafe (internal/modules/cjs/loader.js:915:16)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:963:27)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH node[56518]: at Module.load (internal/modules/cjs/loader.js:863:32)
Aug 12 20:50:07 JPH node[56518]: at Function.Module._load (internal/modules/cjs/loader.js:708:14)
Aug 12 20:50:07 JPH node[56518]: at Module.require (internal/modules/cjs/loader.js:887:19)
Aug 12 20:50:07 JPH node[56518]: at require (internal/modules/cjs/helpers.js:74:18)
Aug 12 20:50:07 JPH node[56518]: at Object.<anonymous> (/home/hackatoa/Documents/Discord-Bot-main/node_modules/discord.js/src/index.js:6:22)
Aug 12 20:50:07 JPH node[56518]: at Module._compile (internal/modules/cjs/loader.js:999:30)
Aug 12 20:50:07 JPH node[56518]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
Aug 12 20:50:07 JPH systemd[1]: discordbot.service: Main process exited, code=exited, status=1/FAILURE
1 Reply
d.js toolkit
d.js toolkit17mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
Want results from more Discord servers?
Add your server