Preston
Preston
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Preston on 8/13/2023 in #djs-questions
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
2 replies
DIAdiscord.js - Imagine an app
Created by Preston on 8/3/2023 in #djs-questions
Numbers in front of text.
I sent the message:
in my server and i console logged it using

in my server and i console logged it using

console.log(${message.content.slice(prefix.length)});
but the result im getting is :
but the result im getting is :
636484900888597> testing``` how do i get rid of those numbers and what are they the numbers for
5 replies