R
Railway

✋|help

i need help setting up my discord bot

Rrealtneu8/29/2023
i need someone to help me configure the database [ i am extremely new to this ]
Rrealtneu8/29/2023
23662a0f-52b0-4ee2-a28b-416c37c66f31
Mmantisinabox8/29/2023
What language?
What library?
What type of database?
Rrealtneu8/29/2023
bot language is nodejs
MySQL
Mmantisinabox8/29/2023
Did you create your MySQL service next to your bot on your dashboard, and did you add the reference variable for your database to your bot service?
Rrealtneu8/29/2023
i created a discord bot using the Discord bot builder app on steam, i want to deploy it on railway, but before that i need to setup a database and then link it to my bot, im having trouble on how to do that
Mmantisinabox8/29/2023
I have never used Discord Bot Builder, so I am not 100% sure how it works as far as hosting it
At the very least, you will need to create the MySQL database, and connect it to the bot service using reference variables. Then you will reference the database variables with process.env.DATABASE_URL or whatever the name of the variable is
Rrealtneu8/29/2023
i deployed my github repo
and there is a deployment error
==============

Using Nixpacks

==============


context: 7db1cc06ab0b89e3ad4fbbb0923c9d23

Nixpacks build failed





Nixpacks was unable to generate a build plan for this app.

Please check the documentation for supported languages: https://nixpacks.com



The contents of the app directory are:



.gitattributes
Mmantisinabox8/29/2023
Can you share the GitHub repo?
Rrealtneu8/29/2023
sure
whats ur github username ?
its a private repo , ill add u to the collaborator
Mmantisinabox8/29/2023
vfehring
Rrealtneu8/29/2023
invited you
Mmantisinabox8/29/2023
You are getting a deploy error because there is nothing in your repository
Rrealtneu8/29/2023
wait what ?
i pushed the files to my repo
Mmantisinabox8/29/2023
All I see in the repo you added me to is a .gitattributes file
Rrealtneu8/29/2023
i pushed the files again
some error occured
mb
the bot started
i wanted to setup the databse now
and i have 0 knowledge on sql
I wanted to know if i wanted to store the memberid [discord] in one of my tables what should i enter in the type column and in the constraints column
Mmantisinabox8/29/2023
The discord api treats ids as strings in lost libraries
Also, does this bot play music?
Rrealtneu8/29/2023
no
Mmantisinabox8/29/2023
Okay, I only ask because I saw things regarding current track
Rrealtneu8/29/2023
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rank text' at line 1 im getting this error on adding the column
its a block in the software im using
if i want to i can add that feature but it has no utility in the bot im building
Mmantisinabox8/29/2023
Okay, I only ask because music bots are not allowed on the service
Rrealtneu8/29/2023
yea sure i wont add that nw
Mmantisinabox8/29/2023
I don’t see how you would even connect to a database with this code. There is no connection variable to set for the database that I can find
Rrealtneu8/29/2023
can i screenshare and show what im building ? as i have connected the database inside the files of the bot
Mmantisinabox8/29/2023
Give me about 10 minutes and I can jump into polar express with you and try and help you figure it out
Rrealtneu8/29/2023
sure
@Vin you there
?
Mmantisinabox8/29/2023
Be there in just a minute. Got tied up with something
Rrealtneu8/29/2023
nw

Looking for more? Join the community!

Recommended Posts
Time between new deploymentsSince I can't find this question, how many seconds does a deployment get removed after a new one goeHobby plan paymentHey do railway accept debit cards ? If yes then why isn't it working?Nobody answering emails on billingHow come nobody is answering the emails i send to billing@railway.app?Access Railway server via http, not https?Hello guys, any one can let me know to access my railway server using http link? ex: http://myservePR environments are not being deployed for the project ownerFollowup to https://discord.com/channels/713503345364697088/1006629907067064482/threads/114578691488Railway PaymentI don't have credit card and unable to get one in our country. Can i make payment using debit card ?Django project: install phase times outWe're currently evaluating Railway because we want to move away from AWS and have a more pleasant anNew to railwaysTrying to move my stuff from a VPS to railwayCancel subscription and then switch to credit, but between...?Hello, I have a doubt about the procedure to switch hobby plan from usage to credit based. Maybe theQuestion: When pushing updates to GitHub repo, will those changes be updated in my custom domain?I pushed a fix into my GitHub repo, which my site is being deployed from, merged to the main branch Template Submission Next StepsHey, I made this post over in #⚡|templates but I think it got deleted for some reason? so going to Nextjs build fail - runc run failed: unable to start container processDeployment ID dd25dd4a-51bd-489e-94a0-387b5ef51852 and [github repo](https://github.com/ballermatic/SSH tunnelingHi all, I'm deploying a django project with ssh tunneling to connect to a remote database. For this PR environments are not being deployed for the project ownerI have created a PR on my repo but I dont see any ephemeral deployment being createdGetting deployment error:11.24 error Your lockfile needs to be updated, but yarn was run with `--frozen-lockfile`. Tried difEstimated usage very similar to current cost?Is the estimate usage working properly, or does it take a while to provide accurate estimates? I aCloudflare for Saas domains compatible with Railway?Hi! We'd love to use Railway but custom domains are holding us back so far. We use Cloudflare for cuCustom domain with A record (not CNAME record)Hi, I want to add a custom domain in one of my projects. Docs says I need to add a CNAME record in Very slow connectionHey, I've built an app that uses Remix, Prisma and Postgres and is hosted in vercel and railway. LoPostgres sql update query inserting "$1" instead of "?"I have a Postgres server and I runned the query: update "Table_name" set("column_name") = ("Column_n