R
Railway14mo ago
noway

Viber and Telegram Bot that use the same database.

Hi guys. I have Telegram and Viber bot. They use the same database. How do I use the railway server to work properly? Is this even possible?
15 Replies
Percy
Percy14mo ago
Project ID: N/A
noway
noway14mo ago
N/A
Brody
Brody14mo ago
would that be two separate services using the same database?
noway
noway14mo ago
It will be Telegram and Viber bot. They use the same database that is updated every 15 minutes. Can you please tell me how to do it better? One database for two bots. Is this the right approach or can something change?
Brody
Brody14mo ago
just setup the database variable references on the services that need it https://docs.railway.app/develop/variables#reference-variables then use those variables in code
noway
noway14mo ago
By the way, you can't tell me how to send Viber bot to railway I will be very grateful
Brody
Brody14mo ago
pardon? tbh i dont know what a viper bot is, can you tell me more about it?
noway
noway14mo ago
Viber is a messenger, something similar to Telegram. I just don't know how to properly upload it to the server
Brody
Brody14mo ago
do you have it in a github repo?
noway
noway14mo ago
Not yet. Can I upload it via github?
Brody
Brody14mo ago
yes that is the preferred method
noway
noway14mo ago
btw, I need to update my db every 15 minutes. Can you tell me to do this in a another script and upload it to the server along with my bots?
Brody
Brody14mo ago
sorry programming help like that is a bit out of scope for these help threads
noway
noway14mo ago
I just want to know the best way to upload it to the server btw, thanks bro
Brody
Brody14mo ago
github would be the best way
Want results from more Discord servers?
Add your server