-
-
Notifications
You must be signed in to change notification settings - Fork 847
Description
When active chats become zero or when the bot restarts, it successfully connects to WhatsApp but does not respond to any commands. The issue persists until I manually remove the session folder and re-login.
Steps to Reproduce:
- Run the bot and connect it to WhatsApp.
- Allow active chats to drop to zero OR restart the bot.
- Attempt to send commands to the bot.
- Observe that the bot does not respond.
- Remove the session folder and re-login.
- Commands start working again.
Expected Behavior:
The bot should continue responding to commands after restart or when active chats drop to zero, without requiring manual deletion of the session folder.
Actual Behavior:
The bot connects to WhatsApp but ignores all commands until the session folder is removed and re-login is performed.
Environment:
- Project: KnightBot-Mini
- Platform: WhatsApp
- Session handling: Local session folder
Possible Cause:
Session persistence may not be handled correctly after restart or inactivity, causing the bot to ignore incoming commands.
Suggested Fix:
Investigate session management logic to ensure the bot can resume command handling without requiring manual deletion of the session folder.