#discord.js bot help

39 messages · Page 1 of 1 (latest)

spiral obsidian
#

so I am trying to use this bot for my own personal use. the original owner has gave me permission to fork the bot obviously. I have proof of that too. but I cant seem to start up the bot. can someone go over the steps with me, or I can even screenshare. idk what version the js is so imma just put v14.11.0

quiet gardenBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Explain what exactly your issue is.
  • Not a discord.js issue? Check out #useful-servers.
spiral obsidian
#

node version 18.12.0 and discord.js 14.11.0

#

Error: Cannot find module './services/matchmakingService'
Require stack:

  • C:\Users\andri\Downloads\pso-matchmaker-main\pso-matchmaker-main\build\bot\src\bot.js
  • C:\Users\andri\Downloads\pso-matchmaker-main\pso-matchmaker-main\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (C:\Users\andri\Downloads\pso-matchmaker-main\pso-matchmaker-main\build\bot\src\bot.js:10:30)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1061:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\andri\Downloads\pso-matchmaker-main\pso-matchmaker-main\build\bot\src\bot.js',
    'C:\Users\andri\Downloads\pso-matchmaker-main\pso-matchmaker-main\index.js'
    ]
    }

Node.js v18.12.0
npm notice
npm notice New major version of npm available! 8.19.2 -> 9.8.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.8.0
npm notice Run npm install -g [email protected] to update!
npm notice

#

i have no clue what my issue is

#

i start the command

#

and it just brigns this up

#

ping me when you can assist me,ill be around

shy coral
#

first one is because you dont have a file called 'matchmakingService', or in the wrong directory

#

2nd is just an npm update which is not djs related

spiral obsidian
shy coral
#

services

#

but wherever you want it to be really

#

just edit the path

spiral obsidian
shy coral
#

then make sure the path is correct

spiral obsidian
shy coral
#

according to your error it isnt, and this isnt djs related anymore at this point

timid tangle
spiral obsidian
#

ive tried to reach out to him

#

he linked his discord

#

but he hasnt answered my friend request

#

or answered my dm's

#

its been around a month now too

#

a friend just recommended me to yall for help

shy coral
#

just triple check your files, according to your logic, and as far as i can see it should be in either src/services or pso-matchmaker-main/services

timid tangle
timid tangle
#

Ah, it’s under GPL and states permission to fork explicitly. Did you run the build script correctly and then start?

spiral obsidian
#

thats kinda my question

#

because ive tried dming him

#

but he wont respond

#

so i tried myself

timid tangle
#

And did you run the build script or not?

dapper kiln
timid tangle
dapper kiln
#

u guys should apologise to me