Skip to content

Bot does not respond to commands after restart until session folder is removed #8

@Stylish00Killer

Description

@Stylish00Killer

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:

  1. Run the bot and connect it to WhatsApp.
  2. Allow active chats to drop to zero OR restart the bot.
  3. Attempt to send commands to the bot.
  4. Observe that the bot does not respond.
  5. Remove the session folder and re-login.
  6. 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.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions