0

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?

4
  • You can host your bot on any "machine", for example you could use a Raspberry Pi. Commented Aug 26, 2022 at 7:36
  • @Paul i dont have a machine like raspberry i can use mongo db if its the only choice Commented Aug 26, 2022 at 8:10
  • 1
    visual studio code is 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 as python script.py And to run it online you need to put code on some computer which can work 24/7 and it has access to internet and run python script.py, You can use servers like Heroku or you can use your local computer - but it would have to run 24/7 with access to internet. Commented Aug 26, 2022 at 9:17
  • In order for a bot to be online 24/7 you need to have the server it’s being hosted on always online. Usually you will have to pay for this if you don’t want to do it yourself. Commented Aug 26, 2022 at 10:00

1 Answer 1

1

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!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.