I am making an Economy Discord bot and I want to make the code open source. Currently, I have a private repo for the code. The bot is being hosted on Heroku and is set to whenever the "Master" branch updates, it will auto-deploy the app.
But I have 2 details that I dont want the open source repo to have. The bots token and a server url that is used to store users data. I dont want the open source repo to have the server url and the token.
Both the token and server url are stored in a .JSON file which will be accessed from the main index.js file. Here is how it looks like:
{
token: "Token_here",
server: "Server_URL_Here"
}
Is there a way to make it so that Heroku and I will have access to the JSON file but the people who is viewing the open source repo to not see the JSON file? Is this possible?