Skip to content

Comments

Mod bot user reports#278

Merged
vcarl merged 4 commits intomainfrom
mod-bot_user-reports
Feb 20, 2026
Merged

Mod bot user reports#278
vcarl merged 4 commits intomainfrom
mod-bot_user-reports

Conversation

@vcarl
Copy link
Member

@vcarl vcarl commented Feb 18, 2026

Introduce a /modreport slash command to summarize how many times a user has been reported, including when their first report happened and when the most recent report happened. Revises database behavior to record more reports than previously.

vcarl and others added 4 commits February 20, 2026 13:52
Posts a public summary of a user's moderation history so the whole
mod team has context when responding to incidents. Includes report
count, anonymous report count, message/channel spread, date range,
peak daily count, and a link to the user's log thread.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
The alreadyReported check matched any existing report for a message
regardless of reason, preventing different report types (e.g., Track
after an anonymous report) from creating separate DB records. Now
matches on both message ID and reason so each report type is tracked
independently.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Kysely migrations used c.defaultTo("CURRENT_TIMESTAMP") which stores
the quoted string as the default instead of the SQL expression. This
caused all created_at values to be the string "CURRENT_TIMESTAMP",
breaking date parsing in /modreport.

Fix inserts to explicitly set created_at and add a migration to
backfill existing rows with datetime('now').

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Add richer context to the modreport embed: reason breakdown, report
recency/velocity, per-channel breakdown, reporter diversity, sparkline
histogram, and a chronological mod action timeline. Restructure the
embed to use fields for logical grouping.

Also introduces the mod_actions table and records kick/ban/timeout
events from the existing mod action log flow.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vcarl
Copy link
Member Author

vcarl commented Feb 20, 2026

Screenshot 2026-02-20 at 3 15 10 PM

@github-actions
Copy link

Smoke Test Results

Metric Value
Image Size unknown
Startup Time 86s

Tested commit: 29cb355

@vcarl vcarl merged commit 1b242fe into main Feb 20, 2026
5 checks passed
@vcarl vcarl deleted the mod-bot_user-reports branch February 20, 2026 20:17
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