R
Railway15mo 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
Percy15mo ago
Project ID: N/A
noway
nowayOP15mo ago
N/A
Brody
Brody15mo ago
would that be two separate services using the same database?
noway
nowayOP15mo 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
Brody15mo 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
nowayOP15mo ago
By the way, you can't tell me how to send Viber bot to railway I will be very grateful
Brody
Brody15mo ago
pardon? tbh i dont know what a viper bot is, can you tell me more about it?
noway
nowayOP15mo ago
Viber is a messenger, something similar to Telegram. I just don't know how to properly upload it to the server
Brody
Brody15mo ago
do you have it in a github repo?
noway
nowayOP15mo ago
Not yet. Can I upload it via github?
Brody
Brody15mo ago
yes that is the preferred method
noway
nowayOP15mo 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
Brody15mo ago
sorry programming help like that is a bit out of scope for these help threads
noway
nowayOP15mo ago
I just want to know the best way to upload it to the server btw, thanks bro
Brody
Brody15mo ago
github would be the best way
Want results from more Discord servers?
Add your server