40 Commits
Author SHA1 Message Date
BlackAngelTV ed14b8260c feat(tickets): open tickets from a panel button in any channel
CI / quality (push) Has been cancelled
Members had to know `/ticket create` and its category list to reach support,
so the entry point is now a panel: `/ticket setup` publishes it in the current
channel, the button opens a menu of the categories the member is allowed to
open, and the choice creates the ticket.

The panel channel and message are stored in `ticket_panels`, so a reinstall
replaces the previous message instead of leaving the server two entry points,
and the panel survives a restart.
2026-10-02 20:29:22 +02:00
BlackAngelTV 1310840215 feat(tickets): guide members in ticket channels and log to the technical salon
CI / quality (push) Has been cancelled
Tickets were opened with three words and members expected an immediate answer,
so the channel now posts a guidance embed: what details to give (context, steps
to reproduce, exact error, OS version) and that a reply can take a while.

The ticket journal moves to CHANNEL_LOGS_ID so the environment keeps one log
salon per purpose: CHANNEL_TICKETS_LOGS_ID held the same entries and nothing
else read it. A wrong CATEGORY_TICKETS_ID now says which case it is, since a
missing category was reported as a mistyped one.
2026-10-02 20:13:31 +02:00
BlackAngelTV a996065861 Merge pull request 'Feat/dashboard rules' (#150) from feat/dashboard-rules into main
CI / quality (push) Has been cancelled
Reviewed-on: #150
2026-09-25 19:16:10 +00:00
BlackAngelTV ffb54a8e37 chore(changelog): regenerate from the commit history
CI / quality (pull_request) Has been cancelled
2026-09-25 21:14:00 +02:00
BlackAngelTV e6ce594b34 fix(rules): show the rules field with a save button and edit the message
The rules lived in a card of their own that never showed up next to the
settings, so the section read as an empty toggle nobody could fill in. The
markdown now renders as a real field with an "Enregistrer" button, and
saving edits the message already pinned instead of deleting it and
posting a new one: same link, same place, pin kept.
2026-09-25 21:14:00 +02:00
BlackAngelTV 4e0f43eace Merge pull request 'Feat/dashboard rules' (#149) from feat/dashboard-rules into main
CI / quality (push) Has been cancelled
Reviewed-on: #149
2026-09-25 18:50:41 +00:00
BlackAngelTV 22e9723700 chore(changelog): regenerate from the commit history
CI / quality (pull_request) Has been cancelled
2026-09-25 20:44:36 +02:00
BlackAngelTV 31c0fc861a feat(rules): write the rules from the dashboard and republish them
The rules lived in a channel nobody but a staff member with a shell could
edit, and the welcome message pointed at it. They are now written in
markdown under Settings and published as a single pinned embed, and a new
publication deletes the message the bot posted last time instead of
piling copies up in the channel.
2026-09-25 20:44:29 +02:00
BlackAngelTV 20ffbbacad Merge pull request 'Fix/mute log wording' (#147) from fix/mute-log-wording into main
CI / quality (push) Has been cancelled
Reviewed-on: #147
2026-09-25 18:34:31 +00:00
BlackAngelTV c61a13176e chore(changelog): regenerate from the commit history
CI / quality (pull_request) Has been cancelled
2026-09-25 20:29:32 +02:00
BlackAngelTV 44e990d04b docs(agents): update the repository conventions and commit rules
The instructions now speak of a dépôt rather than a repo, point at
CONTRIBUTING.md for the collaboration conventions, require signed commits
and state how a commit asked for by the maintainer must be written.
2026-09-25 20:29:31 +02:00
BlackAngelTV 99e1fd2723 fix(moderation): tell a mute apart from a kick in the logs
A timeout was filed as "Exclusion temporaire" right next to "Expulsion",
so a sanction could not be read back from the log channel, the direct
message or `/mod logs`. Each action now carries its own emoji and wording
behind a single label, used by every surface.
2026-09-25 20:29:19 +02:00
BlackAngelTV 859b229181 Merge pull request 'Feat/add missing commands' (#146) from feat/add-missing-commands into main
CI / quality (push) Has been cancelled
Reviewed-on: #146
2026-09-25 18:13:58 +00:00
BlackAngelTV d720c0a17e chore(changelog): regenerate from the commit history
CI / quality (pull_request) Has been cancelled
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-25 20:11:05 +02:00
BlackAngelTV 9f8ac0d29e feat(moderation): add the unmute and unban commands
A sanction could be applied but never lifted from Discord, so undoing a
mistake meant leaving the bot for the server settings. Both lifts are
recorded next to the sanctions they lift, which means widening the
moderation history CHECK constraint through a table rebuild.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-09-25 20:11:00 +02:00
BlackAngelTV 2ccb462e35 Merge pull request 'refactor(all): uniformisation' (#144) from build/project-structure into main
Reviewed-on: #144
2026-09-23 16:31:05 +00:00
BlackAngelTV 50665c8edd refactor(all): uniformisation 2026-09-23 18:25:28 +02:00
BlackAngelTV 865f2eb91b Merge pull request 'Build/project structure' (#142) from build/project-structure into main
Reviewed-on: #142
2026-09-23 12:31:21 +00:00
BlackAngelTV ee538cb943 docs(changelog): list the voice, status and tone work in the changelog
The generated file only knew the history of the previous pass, so the features
merged after it were missing from the notes.
2026-09-15 16:15:01 +02:00
BlackAngelTV 9bbe9cb0b4 docs(readme): translate the documentation and document the contribution workflow
The organisation asks every repository for both languages, for the issue and
pull request templates, and for the commit, branch and release rules; the
README now states them, README.en.md mirrors it, and a test keeps the two in
sync so a change on one side cannot be forgotten on the other.

The readme also documents what shipped since it was last written: several voice
triggers, the guaranteed cleanup of empty channels, the editable bot statuses,
the message tone and the variables they add.
2026-09-15 16:15:00 +02:00
BlackAngelTV 478ae41d86 build(changelog): generate the changelog from the commit history
Releases are expected to ship notes built from the Conventional Commits, and a
hand-written file drifts from the history within a few merges. The generator
reads the log directly, so it adds no dependency, and `npm run changelog:check`
gives CI a way to fail when the file was not regenerated.

A commit that only rewrites the changelog is left out of it, otherwise the
check could never be green once that file is committed.
2026-09-15 16:14:28 +02:00
BlackAngelTV 2df33c205c chore(gitignore): ignore the AI assistant data and the other toolchains
The organisation lists a minimum ignore set for every repository: the data
directory of the development assistants and the artefacts of the languages a
contributor may build next to this one must never reach the repository.
2026-09-15 16:13:52 +02:00
BlackAngelTV c785e9abb7 feat(status): rotate an editable list of bot statuses
The presence line was hard-coded, so advertising a different message meant
editing the source and restarting the bot. Statuses now live in the database
and are managed from Discord with /status — add, list, remove, pause and the
rotation interval, which applies without a restart.

An empty list falls back to a neutral "see the commands with /help" line, and
the first status added shows up right away instead of waiting a full turn.
2026-09-15 16:12:50 +02:00
BlackAngelTV ef8f09da10 refactor(ui): give every message one friendly, ungendered voice
Members read all replies as one voice, so the wording now lives in one place:
the shared titles, the list marker and the "what to do next" hint come from
src/ui/embeds.js, and every module follows them.

An error explains the cause, recalls the rule and offers the way out instead of
blaming; a success says what happens next. Nothing agrees on the gender of a
person ("utilisateur", "cher/chère", "ravie"), which also keeps the sentences
shorter. Two tests lock the shared titles and reject gendered descriptions.
2026-09-15 16:12:19 +02:00
BlackAngelTV 76e2269555 feat(voice): guarantee an empty generated channel disappears
A generated channel could survive with nobody in it: the row was dropped before
the channel was really gone, so a refused delete call left a room nothing could
track anymore, and an event missed while the bot was down was never retried.

The row is now kept until Discord confirms the channel is gone, and a sweep at
startup then every minute deletes whatever the event missed. The grace period
is tunable with VOICE_EMPTY_GRACE_MS, 0 deleting as soon as the room empties.
2026-09-15 16:11:30 +02:00
BlackAngelTV 836abeafd5 feat(voice): support several trigger channels with their own category
A server needs one "create your own room" channel per theme, which a single
trigger id could not express. Triggers are now stored as a list, each with its
own home category, name template and default limit.

Joining a trigger creates the channel at the bottom of that trigger's category,
and a member keeps one channel per trigger instead of one room for the whole
server. Triggers declared by the single-trigger version and
CHANNEL_VOICE_TRIGGER_ID still work as fallbacks, so no server has to be
reconfigured.
2026-09-15 16:09:39 +02:00
BlackAngelTV 66c04c617a docs(agents): add the shared agent instructions for FWS repositories 2026-09-15 15:23:25 +02:00
BlackAngelTV be4981aa75 docs(readme): document the implemented features and the voice manager
The status tables now describe real behaviour, and the required intents and invite permissions include the new voice features so a fresh install works on the first try.
2026-09-15 14:51:22 +02:00
BlackAngelTV aa5343b4b2 test(app): add command and event loading smoke tests
Loading every module catches broken imports and invalid slash command definitions, which unit tests on the services cannot see.
2026-09-15 14:51:18 +02:00
BlackAngelTV 5191942d5a feat(voice): add temporary voice channel manager
Joining the trigger channel must feel instant and never leave orphan channels behind, so the ownership is stored in SQLite, empty channels are deleted after a short grace period and a startup sweep cleans up whatever a restart left behind.
2026-09-15 14:51:17 +02:00
BlackAngelTV ef1bedbc65 feat(polls): implement polls, fun and statistics commands
A poll must end even when nobody is there to close it, so a scheduler reads the stored end dates and finalises the results at startup and while running.
2026-09-15 14:50:54 +02:00
BlackAngelTV f29c09577a feat(members): add welcome, default role and departure reporting
The welcome direct message is best effort: a member with closed private messages must still receive the channel message and the default role.
2026-09-15 14:50:48 +02:00
BlackAngelTV c49c60071d feat(moderation): implement the moderation service and commands
Every action checks the role hierarchy before touching Discord, then records the sanction in SQLite and mirrors it in the moderation log channel, so the history outlives the audit log.
2026-09-15 14:50:48 +02:00
BlackAngelTV e8c95b2ba3 feat(tickets): implement the ticket service, command and channel controls
Each ticket category is visible to a different set of staff roles, and the claim and close actions must also be reachable from the channel itself, so the buttons live in the ticket and share the service checks.
2026-09-15 14:50:47 +02:00
BlackAngelTV a5280ce205 feat(notifications): dispatch Gitea webhooks through the notification service
A guild can reroute a notification type to its own channel from SQLite, with the environment values as fallback, without editing the configuration or restarting the bot.
2026-09-15 14:50:41 +02:00
BlackAngelTV 26d7cce05f feat(fws): implement the version, status and changelog subcommands
Status reports each dependency separately so a Gitea outage never hides a database or webhook problem.
2026-09-15 14:50:41 +02:00
BlackAngelTV 76d0bf9250 feat(gitea): add embeds, modals and the issue and pull request commands
Creating an issue or a pull request needs a title and a description, which do not fit in a slash command option, so the branches chosen as options are kept in memory for a few minutes until the modal is submitted.
2026-09-15 14:50:40 +02:00
BlackAngelTV 66be463ba3 feat(core): add shared constants, interaction components and Gitea client helpers
Moderation, tickets, polls and Gitea events reuse the same labels, colours and buttons; normalising list responses in the client keeps both commands and webhooks free of version quirks.
2026-09-15 14:50:34 +02:00
BlackAngelTV 03a217c775 feat(database): add repositories for tickets, moderation, polls and notifications
Keep every SQL statement out of the command layer so each feature can be built and tested without a Discord dependency.
2026-09-15 14:50:34 +02:00
BlackAngelTV 5fc5cf8fc2 Initial commit 2026-08-27 20:51:00 +00:00