Cohen
Cohen

Reputation: 2415

If I use Heroku to host my d.py bot, can it write and save to my database in mongodb?

I have been using heroku to host my bot and it would normally store data in .json files, however it does not write and store to them as github also isn't a database site, is it possible to host my discord bot from heroku and it still edits my database within Mongodb and retrieves so no data is lost?

Upvotes: 1

Views: 189

Answers (1)

kennysliding
kennysliding

Reputation: 2987

Yes. Since you can send external requests to outside connections from Heroku, you can easily communicate with MongoDB Atlas using Heroku to host your app.

Reference: How to use Atlas on Heroku

Upvotes: 3

Related Questions