By ElSatEsBack
I am making a Discord bot using JS (Node.js to be exact) and Repl.it. When I was setting up the connection between the bot and the code, the article/tutorial that I used (https://www.codementor.io/garethdwyer/building-a-discord-bot-with-node-js-and-repl-it-mm46r1u8y) said that I could keep the bot running using Repl.it by creating a web server, and the bot would keep running, even when the browser was closed. However, what it did not say is that Repl will only keep the bot running for an hour after the browser is closed. I reddit a reddit thread on r/discordapp that said I should use DigitalOcean to keep it running 24/7 and I was just wondering how I would do this and how I would connect it to Repl.it?
Thanks for any help!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I am not familiar with Repel.it, but what I think you could do is just create a droplet/server with DigitalOcean, then deploy your NodeJS app on that server. That way your app would be available 24/7 as the DigitalOcean’s server would be running and accessible all of the time and it would not depend on your local PC at all.
Here’s a cool tutorial on how to setup NodeJS:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.