Bot Error - Deploying With GitHub
ryannuggets
HOBBYOP

a year ago

Hey, every-time i deploy i get the error in the image below. I will provide the github repo link so you can check it out and see if there are any issues there.

53 Replies

ryannuggets
HOBBYOP

a year ago

49be1f3f-1243-43be-a324-5df11b1ff9fe


ryannuggets
HOBBYOP

a year ago

Thats the project id.


ryannuggets
HOBBYOP

a year ago


ryannuggets
HOBBYOP

a year ago

Thats the repo.


maddsua
HOBBY

a year ago

Ye so it looks like you'd need to use a dockerfile


maddsua
HOBBY

a year ago

Or to define an explicit entry point for your app, like a package.json, deno.json etc


ryannuggets
HOBBYOP

a year ago

Whats that?


ryannuggets
HOBBYOP

a year ago

Im not a bot developer, i hired someone to make one for me and i js host it here.


ryannuggets
HOBBYOP

a year ago

They provided a nodes module folder do i put that on github as well?


maddsua
HOBBY

a year ago

Nice, then you can ask them to write a dockerfile for you


maddsua
HOBBY

a year ago

Nope that wouldn't help here


maddsua
HOBBY

a year ago

And also you're not supposed to commit them to a git repo at all


maddsua
HOBBY

a year ago

At least you need the package.json from them


ryannuggets
HOBBYOP

a year ago

There is one


maddsua
HOBBY

a year ago

Package-lock alone is not enough


maddsua
HOBBY

a year ago

Not on the repo you've provided


ryannuggets
HOBBYOP

a year ago

Wait, ill put the package.json again onto the repo


maddsua
HOBBY

a year ago

Yup that should help


ryannuggets
HOBBYOP

a year ago

Done.


ryannuggets
HOBBYOP

a year ago

So thats all i gotta do?


ryannuggets
HOBBYOP

a year ago

No need for dockerfile


maddsua
HOBBY

a year ago

Probably no, but you'd still need to configure the start command


maddsua
HOBBY

a year ago

There's none


maddsua
HOBBY

a year ago

Like, railway has to run something, right? That's why a start command is required


maddsua
HOBBY

a year ago

Same with a dockerfile really, I just prefer it because it's universal


ryannuggets
HOBBYOP

a year ago

He said he does not know how to make a dockerfile


maddsua
HOBBY

a year ago

I can tell


maddsua
HOBBY

a year ago

Does he have an idea how to run his code?


ryannuggets
HOBBYOP

a year ago

He ran it to test before


ryannuggets
HOBBYOP

a year ago

But on a different host


ryannuggets
HOBBYOP

a year ago

1339568921300304000


ryannuggets
HOBBYOP

a year ago

Here is the error after putting the config.json


ryannuggets
HOBBYOP

a year ago

How does he make a start command?


ryannuggets
HOBBYOP

a year ago

@maddsua


maddsua
HOBBY

a year ago

node start.js inside of the scripts section of the package.json


maddsua
HOBBY

a year ago

So, like:

"scripts" : {
  "start":"node start.js"
}

ryannuggets
HOBBYOP

a year ago

He sent this, to replace my old package.json with


ryannuggets
HOBBYOP

a year ago

{
  "name": "discord-bot",
  "version": "1.0.0",
  "description": "discord-bot",
  "main": "start.js",
  "scripts": {
    "start": "node start.js",
    "start:bot1": "node bots/hellfire.js",
    "start:bot2": "node bots/yourSecondBot.js",
    "start:all": "node runner.js",
    "dev": "nodemon runner.js",
    "lint": "eslint .",
    "test": "jest",
    "pm2:start": "pm2 start ecosystem.config.js",
    "pm2:stop": "pm2 stop all",
    "pm2:restart": "pm2 restart all",
    "pm2:logs": "pm2 logs"
  },
  "dependencies": {
    "@discordjs/builders": "^1.7.0",
    "@discordjs/rest": "^2.2.0",
    "@discordjs/voice": "^0.16.1",
    "axios": "^1.7.7",
    "discord-api-types": "^0.37.67",
    "discord-gamecord": "^4.4.2",
    "discord-logs": "^2.2.1",
    "discord.js": "^14.17.3",
    "dotenv": "^16.4.7",
    "easy-json-database": "^1.5.1",
    "express": "^4.18.2",
    "lyrics-finder": "^21.7.0",
    "moment": "^2.30.1",
    "mongoose": "^8.1.1",
    "ms": "^2.1.3",
    "noblox.js": "^4.15.1",
    "pm2": "^5.3.1",
    "sqlite3": "^5.1.7",
    "winston": "^3.11.0"
  },
  "devDependencies": {
    "eslint": "^8.56.0",
    "jest": "^29.7.0",
    "nodemon": "^3.0.3"
  },
  "engines": {
    "node": ">=16.9.0"
  },
  "keywords": [
    "discord",
    "bot",
    "multi-bot",
    "discord.js",
    "automation"
  ],
  "author": "Your Name",
  "license": "MIT"
}

maddsua
HOBBY

a year ago

Problem is you don't have the file runner.js in your repository so it will not work


ryannuggets
HOBBYOP

a year ago

He said he added the thing you said


ryannuggets
HOBBYOP

a year ago

This


ryannuggets
HOBBYOP

a year ago

Do i tell him to make a runner.js too?


maddsua
HOBBY

a year ago

Idk I'm not the guy who wrote it 🤷‍♂️


ryannuggets
HOBBYOP

a year ago

so


ryannuggets
HOBBYOP

a year ago

what would fix the error


ryannuggets
HOBBYOP

a year ago

him doing the start.js thing


ryannuggets
HOBBYOP

a year ago

or him doing a runner.js


maddsua
HOBBY

a year ago

The repo having a proper start command would


ryannuggets
HOBBYOP

a year ago

1339573365731758000


ryannuggets
HOBBYOP

a year ago

what does this error mean tho


maddsua
HOBBY

a year ago

It's not like I have any idea how the code works and I am judging from what your previously said, you don't actually copy all the files, so maybe there's something else so you have to figure it out between you and the developer, which files are actually required and then simply write a proper start command which would run the actual entry point of your application. That's it


maddsua
HOBBY

a year ago

Typed this with Google voice idk could have some misspellings


maddsua
HOBBY

a year ago

It means that Nixie packs failed to install all the required packages and the actual error would be a bit down below in the logs


Loading...