whatsapp-chatgpt icon indicating copy to clipboard operation
whatsapp-chatgpt copied to clipboard

Provide users with help about what configuration options are available

Open ttebify opened this issue 2 years ago • 1 comments

This pull request adds a new feature to the !config command to provide users with help about what configuration options are available.

The changes are made in src/handlers/ai-config.ts to add a new condition to the handleMessageAIConfig function. This condition checks for the user entering !config help and, if true, prints out a list of the possible configuration options.

The list of possible configuration options is generated by looping through the aiConfigTarget, aiConfigTypes, and aiConfigValues objects and collecting the keys of each. This list is then printed out as a message for the user.

The changes were made following the existing coding style and conventions of the project, and were tested to ensure that the functionality works as expected.

ttebify avatar Feb 20 '23 13:02 ttebify

I will merge it later, thanks! 🚀

navopw avatar Feb 20 '23 16:02 navopw