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
Need more info
What does not working ential
Are there any errors
Ect
there are no errors except this one
and what does the bot not do?
and how does this compare to the logs when the bot is runnign fine
when the bot is working normally, there are no errors at all, the bot does not start from the hosting in principle
are you saying the bot does not work at all on railway
and is your code open source?
yes
private
im not sure i can help you then
what do the logs look like when running locally?
empty
maybe add some logging to see whats going on
e.g when it starts up and ect
im assuming it never comes online
I'll try to do it now
🙂
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
what command do you use to run it locally?
node .
the same thing as node index.js
if you head to the build tab and scroll to the top what does the build command say
sorry
start command
where is this tab?
in the center there
^
the build tab
build logs
the top
of the build logs
so these are the build logs
no those are the deploy logs
these are the build logs
whats at the top of them
ok cool
in your package.json, inside the scripts section
add a script like so
thx ❤️❤️❤️
no worries 🙂