Add function to read sensitive data from .sensitive.json file

- Implemented GetSensitiveData function to load sensitive data from a JSON file.
- Added error handling for missing file scenario.
This commit is contained in:
암냥 2025-06-18 21:42:06 +09:00
commit 1b65693ba5
6 changed files with 77 additions and 13 deletions

10
.sensitive.example.json Normal file
View file

@ -0,0 +1,10 @@
{
"*.google.com": {
"x_username": "bot.imnya.ng@gmail.com",
"x_password": "some.google.password"
},
"github.com": {
"x_username": "imnyang-bot",
"x_password": "some.github.password"
}
}