Commit Graph

9 Commits

Author SHA1 Message Date
minori 9437338d6f deps: update @vitest/coverage-v8 to 4.1.0
Node.js CI / CI (pull_request) Successful in 31s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 57s
2026-04-02 07:02:19 -07:00
hikari 1c31a49bc4 feat: rewrite as moderation bot (#11)
Node.js CI / CI (push) Successful in 29s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 55s
## Summary

- Replaces the old AI companion bot with a full Discord moderation system
- Adds 8 slash commands: `warn`, `mute`, `unmute`, `kick`, `softban`, `ban`, `unban`, `prune`
- Adds logging for member join/leave, activity (messages, threads, voice), and moderation actions
- Audit log integration captures manual bans, kicks, timeouts, and unbans
- All applicable actions post sanctions to the Hikari sanction API
- All commands are ephemeral, use Components v2, and enforce permission + role hierarchy checks

## Test plan

- [ ] Run `pnpm register` to register all 8 commands to the guild
- [ ] Verify each command appears in Discord and is only visible to members with the appropriate permissions
- [ ] Test each command against a valid target and confirm mod log entry, DM notification, and sanction record
- [ ] Test each command against an invalid target (equal/higher role, self, bot) and confirm correct error response
- [ ] Perform a manual ban, kick, and timeout in the Discord UI and confirm audit log handler picks them up
- [ ] Perform a manual unban and confirm it logs correctly without creating a sanction
- [ ] Verify join/leave messages appear in the welcome log channel
- [ ] Verify message edits, deletes, thread events, and voice state changes appear in the activity log channel

 This issue was created with help from Hikari~ 🌸

Reviewed-on: #11
Co-authored-by: Hikari <hikari@nhcarrigan.com>
Co-committed-by: Hikari <hikari@nhcarrigan.com>
2026-03-24 20:35:26 -07:00
minori 02ee22c123 Merge pull request 'deps: update discord.js to 14.25.1' (#2) from dependencies/update-discord.js into main
Node.js CI / CI (push) Successful in 30s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m45s
2026-02-23 20:47:20 -08:00
minori 310cbc594c deps: update @anthropic-ai/sdk to 0.74.0
Node.js CI / CI (pull_request) Successful in 25s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m17s
2026-02-18 07:08:56 -08:00
minori b8a24edd24 deps: update @anthropic-ai/sdk to 0.73.0
Node.js CI / CI (pull_request) Successful in 26s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m9s
2026-02-16 07:05:20 -08:00
minori 5357597177 deps: update @anthropic-ai/sdk to 0.72.1
Node.js CI / CI (pull_request) Successful in 25s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m2s
2026-02-09 07:06:22 -08:00
minori 597359b3b1 deps: update discord.js to 14.25.1
Node.js CI / CI (pull_request) Successful in 31s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m40s
2026-02-04 08:43:35 -08:00
minori 3b5d84eab4 deps: update @anthropic-ai/sdk to 0.71.2
Node.js CI / CI (pull_request) Successful in 30s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m37s
2026-02-04 08:43:24 -08:00
naomi 68f7eabe2c feat: initial prototype
Code Analysis / SonarQube (push) Failing after 19s
Node.js CI / Lint and Test (push) Has been cancelled
2025-10-09 11:28:47 -07:00