I have a discord bot that I want to make online 24/7 in visual studio code and need help. Like is there a different way than Heroku and mongo DB?
1 Answer
I suggest you to create an account on https://replit.com! The create a repl, upload your code there. Then, you can follow the istructions here: https://www.codementor.io/@garethdwyer/building-a-discord-bot-with-python-and-repl-it-miblcwejz#keeping-our-bot-alive to learn how to keep your bot alive by just creating a single file. Follow instructions, press "Run" on replit and it's done!
visual studio codeis only IDE (editor with extra extensions), and we use IDE only to develop code. When code is ready then we don't need IDE. You run it directly in system's console/terminal aspython script.pyAnd to run it online you need to put code on some computer which can work 24/7 and it has access to internet and runpython script.py, You can use servers likeHerokuor you can use your local computer - but it would have to run 24/7 with access to internet.