R
Railway2y ago
-

discord bot doesn't want to work

I linked the bot through the github repository, my first bot worked on hosting without any problems, and I did the second one exactly according to the same instructions as the first one, but it does not start, while I can run it through my computer and it works
29 Replies
-
-OP2y ago
Finn
Finn2y ago
Need more info What does not working ential Are there any errors Ect
-
-OP2y ago
there are no errors except this one
Finn
Finn2y ago
and what does the bot not do? and how does this compare to the logs when the bot is runnign fine
-
-OP2y ago
when the bot is working normally, there are no errors at all, the bot does not start from the hosting in principle
Finn
Finn2y ago
are you saying the bot does not work at all on railway and is your code open source?
-
-OP2y ago
yes private
Finn
Finn2y ago
im not sure i can help you then what do the logs look like when running locally?
-
-OP2y ago
empty
Finn
Finn2y ago
maybe add some logging to see whats going on e.g when it starts up and ect im assuming it never comes online
-
-OP2y ago
I'll try to do it now
Finn
Finn2y ago
🙂
-
-OP2y ago
no, the code doesn't run on railway at all I did this at the very beginning of the code so that the program would write something to the console, it worked on local hosting, it didn't work on the railway
Finn
Finn2y ago
what command do you use to run it locally?
-
-OP2y ago
node . the same thing as node index.js
Finn
Finn2y ago
if you head to the build tab and scroll to the top what does the build command say sorry start command
-
-OP2y ago
where is this tab?
Finn
Finn2y ago
Finn
Finn2y ago
in the center there
-
-OP2y ago
^
Finn
Finn2y ago
the build tab build logs
-
-OP2y ago
Finn
Finn2y ago
the top of the build logs
-
-OP2y ago
so these are the build logs
Finn
Finn2y ago
no those are the deploy logs these are the build logs whats at the top of them
-
-OP2y ago
Finn
Finn2y ago
ok cool in your package.json, inside the scripts section add a script like so
"start": "node ."
"start": "node ."
-
-OP2y ago
thx ❤️❤️❤️
Finn
Finn2y ago
no worries 🙂
Want results from more Discord servers?
Add your server