This system provides functionality to load and save configuration values from an .env
file for use in any application. The settings can include API keys, bot tokens, and other user-defined configurations that can be dynamically loaded.
- Load and save settings from an
.env
file. - Support for multiple configuration fields including:
- GPT API Key
- YouTube API Key
- YouTube App Name
- Discord Bot Token
- MongoDB URL
- Option to show/hide password characters in input fields.
- User-friendly interface for selecting and managing
.env
files.
Void
You are free to use, modify, and distribute this code, as long as proper attribution is given. Void is not responsible for any damages or issues arising from the use of this code.
- Ensure an
.env
file is placed in the same directory as the application executable. (This will create one if it does not exist.) - Populate the
.env
file with required keys (e.g.,GPT_API_KEY
,DISCORD_BOT_TOKEN
, etc.). - Use the application to load and save your settings.
- Use the menu options to load a new
.env
file or save changes to the current configuration.
Feel free to fork the repository and submit pull requests. For any issues or feature requests, please create an issue on GitHub.
For any inquiries, please reach out via the provided contact links above.