R
Railway16mo ago
realTNEU

i need help setting up my discord bot

i need someone to help me configure the database [ i am extremely new to this ]
29 Replies
Percy
Percy16mo ago
Project ID: 23662a0f-52b0-4ee2-a28b-416c37c66f31
realTNEU
realTNEUOP16mo ago
23662a0f-52b0-4ee2-a28b-416c37c66f31
MantisInABox
MantisInABox16mo ago
What language? What library? What type of database?
realTNEU
realTNEUOP16mo ago
bot language is nodejs MySQL
MantisInABox
MantisInABox16mo ago
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?
realTNEU
realTNEUOP16mo ago
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
MantisInABox
MantisInABox16mo ago
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
realTNEU
realTNEUOP16mo ago
i deployed my github repo and there is a deployment error
realTNEU
realTNEUOP16mo ago
============== 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
Getting Started | Nixpacks
App source + Nix packages + Docker = Image
MantisInABox
MantisInABox16mo ago
Can you share the GitHub repo?
realTNEU
realTNEUOP16mo ago
sure whats ur github username ? its a private repo , ill add u to the collaborator
MantisInABox
MantisInABox16mo ago
vfehring
realTNEU
realTNEUOP16mo ago
invited you
MantisInABox
MantisInABox16mo ago
You are getting a deploy error because there is nothing in your repository
realTNEU
realTNEUOP16mo ago
wait what ? i pushed the files to my repo
MantisInABox
MantisInABox16mo ago
All I see in the repo you added me to is a .gitattributes file
realTNEU
realTNEUOP16mo ago
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
MantisInABox
MantisInABox16mo ago
The discord api treats ids as strings in lost libraries Also, does this bot play music?
realTNEU
realTNEUOP16mo ago
no
MantisInABox
MantisInABox16mo ago
Okay, I only ask because I saw things regarding current track
realTNEU
realTNEUOP16mo ago
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
MantisInABox
MantisInABox16mo ago
Okay, I only ask because music bots are not allowed on the service
realTNEU
realTNEUOP16mo ago
yea sure i wont add that nw
MantisInABox
MantisInABox16mo ago
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
realTNEU
realTNEUOP16mo ago
can i screenshare and show what im building ? as i have connected the database inside the files of the bot
MantisInABox
MantisInABox16mo ago
Give me about 10 minutes and I can jump into polar express with you and try and help you figure it out
realTNEU
realTNEUOP16mo ago
sure @Vin you there ?
MantisInABox
MantisInABox16mo ago
Be there in just a minute. Got tied up with something
realTNEU
realTNEUOP16mo ago
nw
Want results from more Discord servers?
Add your server