Commit Graph

17 Commits

Author SHA1 Message Date
hikari 39b22c9514 fix: correct announcement API endpoint and add optional content fields (#20)
Node.js CI / CI (push) Successful in 43s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m50s
## Summary

- Fixes the announcement API URL from `/announcement` to `/api/announcement`
- Adds three optional additional content text inputs (Parts 2–4) to the announcement modal
- The bot concatenates all non-empty content fields with double newlines before forwarding to the API
- Only the first content field and the category selector remain required

## Test Plan

- [ ] Run `/announcement` and verify the modal opens with four content fields and a category selector
- [ ] Submit with only the first content field filled — verify it sends correctly
- [ ] Submit with multiple content fields filled — verify they are concatenated in the API request
- [ ] Verify the API no longer returns HTTP 405

Reviewed-on: #20
Co-authored-by: Hikari <hikari@nhcarrigan.com>
Co-committed-by: Hikari <hikari@nhcarrigan.com>
2026-03-23 15:59:42 -07:00
hikari 11b23b10a6 refactor: consolidate modal routing and use LabelBuilder for modal components
Node.js CI / CI (push) Successful in 41s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m56s
Merges modalInteractionCreate into interactionCreate, and replaces
ActionRowBuilder with LabelBuilder for the announcement modal components.
2026-03-12 23:21:06 -07:00
hikari e2167b117a deps: update discord.js to 14.25.1
Node.js CI / CI (push) Successful in 42s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m2s
Enables typed getStringSelectValues() for modal select menus,
removing the need for type assertion workarounds.
2026-03-12 23:01:22 -07:00
hikari 2991a56147 feat: add /announcement owner-only slash command
Triggers a modal with a content text input and category select menu,
calls the announcement API, DMs generated copy as file attachments,
and replies ephemerally with the platform recap.
2026-03-12 23:01:19 -07:00
hikari ab1c41224d chore: disable message create event handler
Node.js CI / CI (push) Successful in 45s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 1m3s
2026-03-11 08:57:47 -07:00
naomi fa11924663 fix: wtf did i commit then
Node.js CI / Lint and Test (push) Successful in 1m33s
2025-10-09 20:56:07 -07:00
naomi 789b81a5fe feat: actually remove MCP
Node.js CI / Lint and Test (push) Failing after 1m10s
2025-10-09 20:54:24 -07:00
naomi 5bd6e03a8d feat: add analytics, fix mcp logic
Node.js CI / Lint and Test (push) Successful in 1m39s
2025-10-09 20:36:39 -07:00
naomi dc34fbeafd chore: gitignore bot/prod 2025-08-25 15:56:46 -07:00
naomi 24c0d10bab chore: remove erroneous prod folder 2025-08-25 15:56:10 -07:00
naomi 908f22d6aa feat: add ability to log and display sanctions 2025-08-25 15:55:48 -07:00
naomi a9126ec826 fix: only respond to direct pings, ignore bots
Node.js CI / Lint and Test (push) Failing after 1m11s
2025-08-16 18:11:19 -07:00
naomi b6c49f1206 feat: no more forum announcements
Node.js CI / Lint and Test (push) Failing after 1m13s
2025-08-14 11:40:46 -07:00
naomi 9a845ed80d feat: use mcp beta instead of prompt
Node.js CI / Lint and Test (push) Successful in 1m21s
2025-07-14 14:34:47 -07:00
naomi 15b4626f8d fix: bugs?
Node.js CI / Lint and Test (push) Successful in 1m24s
2025-07-14 14:18:00 -07:00
naomi 1fcb658cf1 feat: set up mcp for docs (#5)
Node.js CI / Lint and Test (push) Successful in 1m25s
### Explanation

_No response_

### Issue

_No response_

### Attestations

- [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [x] I have pinned the dependencies to a specific patch version.

### Style

- [x] I have run the linter and resolved any errors.
- [x] My pull request uses an appropriate title, matching the conventional commit standards.
- [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [ ] All new and existing tests pass locally with my changes.
- [ ] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

_No response_

Reviewed-on: #5
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-07-14 14:15:01 -07:00
naomi 081cf6f28b feat: build out discord support agent (#4)
Node.js CI / Lint and Test (push) Successful in 1m20s
### Explanation

_No response_

### Issue

_No response_

### Attestations

- [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [x] I have pinned the dependencies to a specific patch version.

### Style

- [x] I have run the linter and resolved any errors.
- [x] My pull request uses an appropriate title, matching the conventional commit standards.
- [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [ ] All new and existing tests pass locally with my changes.
- [ ] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

_No response_

Reviewed-on: #4
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-07-05 23:09:31 -07:00