7 months ago
I have add variables but still I failed to deploy my project here. All the keys I have add are correct I cross checked them
https://github.com/arushi825/Discord_Chatbot
4 Replies
7 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
7 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open chandrika • 8 months ago
7 months ago
arushi825, follow these steps to get this up and running:
1. Add a "requirements.txt" file in your code/GitHub repository
discord.py
cohere
python-dotenv
2. Create a service for the repo in your Railway dashboard.
Right-click on Railway canvas -> GitHub repo -> Either provide the URL of the repo/choose from the dropdown
Once the service shows up in the UI, go to its SETTINGS -> Custom Start Command, and add python mail_cohere.py
Go to the Variables tab, add the two variables & their values (as required by your code: COHERE_API_KEY & DISCORD_TOKEN).
Then only, click on DEPLOY. If the provided environment variables are correct, then the code must run smoothly. Do let me know if that helped 
Note: Once it's deployed, go to Settings -> Public Networking -> Generate Domain. That will provide you with a link that you can use to call the server (if that link doesn't open in the browser, you can test it on POSTMAN, because INDIAN ISPs like Jio block the browser requests of railway domain). But, you can always use the link as a server call & it won't be restricted
Attachments
clashing
arushi825, follow these steps to get this up and running:1. Add a "requirements.txt" file in your code/GitHub repositorydiscord.pycoherepython-dotenv2. Create a service for the repo in your Railway dashboard.Right-click on Railway canvas -> GitHub repo -> Either provide the URL of the repo/choose from the dropdownOnce the service shows up in the UI, go to its SETTINGS -> Custom Start Command, and add python mail_cohere.pyGo to the Variables tab, add the two variables & their values (as required by your code: COHERE_API_KEY & DISCORD_TOKEN).Then only, click on DEPLOY. If the provided environment variables are correct, then the code must run smoothly. Do let me know if that helped Note: Once it's deployed, go to Settings -> Public Networking -> Generate Domain. That will provide you with a link that you can use to call the server (if that link doesn't open in the browser, you can test it on POSTMAN, because INDIAN ISPs like Jio block the browser requests of railway domain). But, you can always use the link as a server call & it won't be restricted
7 months ago
Did this help, arushi825
clashing
arushi825, follow these steps to get this up and running:1. Add a "requirements.txt" file in your code/GitHub repositorydiscord.pycoherepython-dotenv2. Create a service for the repo in your Railway dashboard.Right-click on Railway canvas -> GitHub repo -> Either provide the URL of the repo/choose from the dropdownOnce the service shows up in the UI, go to its SETTINGS -> Custom Start Command, and add python mail_cohere.pyGo to the Variables tab, add the two variables & their values (as required by your code: COHERE_API_KEY & DISCORD_TOKEN).Then only, click on DEPLOY. If the provided environment variables are correct, then the code must run smoothly. Do let me know if that helped Note: Once it's deployed, go to Settings -> Public Networking -> Generate Domain. That will provide you with a link that you can use to call the server (if that link doesn't open in the browser, you can test it on POSTMAN, because INDIAN ISPs like Jio block the browser requests of railway domain). But, you can always use the link as a server call & it won't be restricted
7 months ago
Any update, arushi825?
If yes, then do mark my initial reply as the solution by clicking on Accept solution button below that post