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.
This commit is contained in:
BlackAngelTV committed 2026-09-25 20:44:29 +02:00
1 parent 20ffbbacad
commit 31c0fc861a
11 files changed
+452 -8

No files matched your search

+2 -2
View File
@@ -126,7 +126,7 @@ Full template: [`.env.example`](.env.example). Default values in brackets.
| Variable | Usage |
| -------------------------------- | --------------------------------------------------------------------------- |
| `CHANNEL_WELCOME_ID` | Welcome messages |
| `CHANNEL_RULES_ID` | Rules (link sent to newcomers) |
| `CHANNEL_RULES_ID` | Rules: link sent to newcomers, and where the dashboard pins the message |
| `CHANNEL_ANNOUNCEMENTS_ID` | FWS announcements |
| `CHANNEL_LOGS_ID` | Functional logs |
| `CHANNEL_MOD_LOGS_ID` | Moderation logs |
@@ -326,7 +326,7 @@ No added dependency: `node:http` for the server, `node:sqlite` for the sessions,
The bot also serves **public documentation** at `/wiki`, readable without an account and written from the panel. It ships with **terms of use** and a **privacy policy** aligned with the Swiss LPD, describing exactly what this code processes — the bracketed details still have to be filled in and reviewed.
The panel also **publishes the slash commands** to Discord without shell access, and gathers under **Settings** everything that can be changed without touching the `.env`: welcome, moderation, tickets, voice, notifications.
The panel also **publishes the slash commands** to Discord without shell access, and gathers under **Settings** everything that can be changed without touching the `.env`: welcome, moderation, rules, tickets, voice, notifications.
### 6.1 Getting started