π What category is this feature in?
Information
π Description of Feature
At the moment all of the values are managed in config.json
and are not able to be updated live with the bot. To resolve this we can store files in a settings.sqlite
file in /utils
using quick db.
The settings
panel can house different options to customise settings as seen below:
(The donation system along with safety enabling/disabling has not been implemented)
π΄ Failing
π’ Success
Loading
How checking would occur:
Webhooks - A request would be sent to see if it contains: {"message": "Invalid Webhook Token", "code": 50027}
or not
Gemini - A request would be sent to the listmodels
endpoint to check if its working
Prodia - A request would be sent to the listloras
endpoint to check if its working
NSFW Image Restrictions - Boolean (True/False) checking
Gemini Safety Restrictions - Boolean (True/False) checking
More info:
The settings embed will have a set of action rows below, for each category, with buttons. These buttons would only appear once checking has been completed. For non-boolean value settings, an accessible modal will open up, allowing the user to edit the setting.
After they have submitted the new value it will be checked, if it is valid the settings embed will update with π’, and the database will be updated. If it is invalid the embed will remain the same, along with the database.
The implementation of this would make the config.json
file only dedicated to the:
- Token
- Client ID
- Owners Array
This command would be emepheral and only accessible to the userIDs of the Owners array.
This update should also bring a modification to the button handler to allow multiple ids to be specified by separating them with a comma
Progress