branhoff / hooter-the-tutor

0 stars 2 forks source link

Improve streak tracking reliability and logging #22

Closed branhoff closed 1 month ago

branhoff commented 1 month ago

We are experiencing issues with streak tracking in our Discord bot deployed on Google Cloud Run. Streaks are not always incrementing correctly, likely due to slow starts or inconsistent updates to the JSON file. This issue requires implementation of validation checks, improved logging, and more robust file operations.

Objectives:

  1. Enhance logging throughout streak-related functions
  2. Implement validation checks for JSON file updates
  3. Use atomic file operations to prevent data corruption
  4. Improve error handling and consistency checks

Tasks: