Discord bot not working properly.
xian3533-pixel
FREEOP

2 months ago

I have a Discord bot running on railway and I can't find the bot’s files, including the main code, modules, and configuration. I'm not sure if there’s a way to download or export these files from Railway, or if I need a linked GitHub repo to retrieve them? I want to make sure I have a backup and can manage or redeploy my bot safely. Also, when I ran out of tokens, I was able to deploy changes successfully but some commands of the bot did not work in discord.

$10 Bounty

2 Replies

Railway
BOT

2 months ago

Railway is a deployment platform, not a file hosting service. We do not store or provide access to your application's source code unless you deployed via a linked GitHub repo (in which case your code lives in that repo) or used a Railway Function (where the code is viewable in the "Source Code" tab). If you deployed by uploading code through the CLI without a repo, you would need your own local copy. Regarding your credits running out, on the Free plan you receive $1/month in credits, and when those are exhausted your services are taken offline, which would explain why some bot commands stopped working.


Status changed to Awaiting User Response Railway about 2 months ago


Status changed to Open Railway about 2 months ago


You should be deploying code from prebuilt images or from a Github repository.

There is a way to access the filesystem of a container, but that does not guarantee the fact that you may or may not find the codebase inside.

You can do so by right clicking the service and clicking Copy SSH Command, then pasting that in your terminal. Keep in mind you'll need Railway CLI installed beforehand.

Secondly, what do you mean by "tokens"?


Welcome!

Sign in to your Railway account to join the conversation.

Loading...