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
Or to define an explicit entry point for your app, like a package.json, deno.json etc
Im not a bot developer, i hired someone to make one for me and i js host it here.
Like, railway has to run something, right? That's why a start command is required
{
"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"
}Problem is you don't have the file runner.js in your repository so it will not work
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
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

