Skip to content

feat: add message archive system#8

Merged
Chrisdbhr merged 1 commit into
masterfrom
feature/message-archive
Jun 2, 2026
Merged

feat: add message archive system#8
Chrisdbhr merged 1 commit into
masterfrom
feature/message-archive

Conversation

@Chrisdbhr

Copy link
Copy Markdown
Collaborator

Summary

Automatic message archiving to SQLite with resilient backfill that never gives up.

  • Backfill paginates from newest to oldest across all text channels
  • When API returns empty (cold storage), retries with exponential backoff 60s → 30min
  • Retry loop runs forever in background until Discord returns data
  • Real-time capture of new messages after backfill
  • Filters: skips bots, messages ≤2 chars, non-letter-starting

New Files

  • src/Models/MessageRecord.cs — EF Core entity
  • src/Models/ArchiveDbContext.cs — SQLite DbContext
  • src/Services/MessageArchiveService.cs — Backfill + real-time + retry loop
  • src/Modules/ArchiveModule.cs — Slash commands
  • docker-compose.stage.yml — Isolated stage compose

@Chrisdbhr Chrisdbhr merged commit d345572 into master Jun 2, 2026
@Chrisdbhr Chrisdbhr deleted the feature/message-archive branch June 2, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant