WAppAI / assistant

A WhatsApp chatbot that leverages Bing AI's and others LLMs conversational capabilities.
MIT License
92 stars 30 forks source link

Fix: Add Fallback for BOT_NAME Constant #128

Closed sudoalx closed 1 year ago

sudoalx commented 1 year ago

This pull request addresses an issue where the BOT_NAME constant was not properly defined in the .env file, resulting in the bot displaying "undefined" as the name, for instance, when introducing itself in WhatsApp. To resolve this, a fallback mechanism has been implemented, setting the BOT_NAME constant to "Sydney" when not defined in the .env file. With this fix, the bot will now display the default name "Sydney" in case the name is not explicitly provided in the configuration. This prevents unexpected behavior due to missing configurations.