Commit Graph
67 Commits
Author SHA1 Message Date
nocodeandClaude Opus 5 611129b23c feat(web): run and record release deployments
Three kinds of target, ordered by how much they trust the caller: a signed
webhook runs nothing locally, a Gitea Action delegates to the forge, and a
shell command executes arbitrary code on the bot host — hence the double
lock of an environment flag plus the Owner level on that last one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:13 +02:00
nocodeandClaude Opus 5 efaaca35dd feat(web): read, validate and write the .env configuration
Every variable is described once, with its explanation and the steps to
obtain it. The form, the validation and the generated file all derive from
that description, so adding a variable to the bot means touching one file.

The previous file is backed up before being replaced, and an empty secret
means "keep the current value" so a token cannot be wiped by accident.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:13 +02:00
nocodeandClaude Opus 5 e03b184d68 feat(web): add the HTTP layer and Discord-backed sessions
Visitors sign in with Discord and inherit the very same access levels as the
slash commands, so there is no second permission model to keep in sync.

Writes require a header a cross-site form cannot forge, on top of the
`SameSite=Lax` cookie, and a bootstrap token opens the configuration wizard
alone for the case where no Discord application exists yet.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:13 +02:00
nocodeandClaude Opus 5 5abe713279 feat(database): store dashboard sessions, deploy targets and deployments
Sessions and API tokens keep only a hash of the value handed to the client,
so a database dump cannot be replayed. A deployment denormalises its target
name so the history survives the deletion of that target.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:13 +02:00
nocodeandClaude Opus 5 4b0737a512 feat(gitea): add an organization and repository administration client
`gitea-client.js` stays focused on the single repository the slash commands
talk to. The dashboard addresses any repository of the organization, so its
endpoints live apart instead of bloating the command path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:12 +02:00
nocodeandClaude Opus 5 e4534d4d50 feat(config): declare the web dashboard environment variables
The dashboard is off by default and listens on the loopback interface: it
must be an explicit decision to expose it, not a side effect of upgrading.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:12 +02:00
nocodeandClaude Opus 5 92405ac618 fix(notifications): apply the channel overrides set from Discord
`/notify set` stores the types listed in `NOTIFICATION_TYPES` (`releases`,
`commits`, `pull_requests`) while the webhook handler looks them up under the
Gitea event names (`release`, `push`, `pull_request`), so an override chosen
from Discord was never found and the environment default always won.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-23 20:09:07 +02:00
nocode abf6701bb0 docs(core): document project structure
Refs: #12
2026-09-13 12:25:12 +02:00
nocode fec8007c62 chore(docs): add screenshots directory
Refs: #101
2026-09-13 12:25:11 +02:00
nocode 9f2aa90a28 chore(observability): keep logs directory in repository
Refs: #17
2026-09-13 12:25:11 +02:00
nocode 070612abe4 chore(database): keep data directory in repository
Refs: #16
2026-09-13 12:25:11 +02:00
nocode baef3fa0af test(database): add sqlite storage tests
Refs: #16
2026-09-13 12:25:11 +02:00
nocode 52e24bd4af test(auth): add permission checks tests
Refs: #115
2026-09-13 12:25:11 +02:00
nocode 9a266b70fc feat(database): add database initialization script
Refs: #16
2026-09-13 12:25:11 +02:00
nocode 6b4ac374ed feat(commands): add slash command deployment script
Refs: #24
2026-09-13 12:25:10 +02:00
nocode de97f878e1 feat(core): add bot entry point
Refs: #22
2026-09-13 12:25:10 +02:00
nocode 208d713fe0 feat(fun): add fun command skeleton
Refs: #88
2026-09-13 12:25:10 +02:00
nocode baca3f0993 feat(stats): add stats command skeleton
Refs: #90
2026-09-13 12:25:10 +02:00
nocode 9ccecb3071 feat(polls): add poll command skeleton
Refs: #82
2026-09-13 12:25:10 +02:00
nocode cef9ed0371 feat(roles): add role command skeleton
Refs: #63
2026-09-13 12:25:09 +02:00
nocode 744eaa8398 feat(moderation): add moderation logs command skeleton
Refs: #70
2026-09-13 12:25:09 +02:00
nocode dc4958fa26 feat(moderation): add clear command skeleton
Refs: #69
2026-09-13 12:25:09 +02:00
nocode 002380c03f feat(moderation): add ban command skeleton
Refs: #68
2026-09-13 12:25:09 +02:00
nocode 4cc475edef feat(moderation): add kick command skeleton
Refs: #67
2026-09-13 12:25:09 +02:00
nocode 373c7e6455 feat(moderation): add mute command skeleton
Refs: #66
2026-09-13 12:25:09 +02:00
nocode 1bcc3d382d feat(moderation): add warn command skeleton
Refs: #65
2026-09-13 12:25:08 +02:00
nocode ab08253126 feat(support): add ticket command skeleton
Refs: #52
2026-09-13 12:25:08 +02:00
nocode d9ce9e4aae feat(gitea): add activity and release command skeleton
Refs: #48
2026-09-13 12:25:08 +02:00
nocode 44c9595ae0 feat(gitea): add pull request command skeleton
Refs: #48
2026-09-13 12:25:08 +02:00
nocode bd2475cb73 feat(gitea): add issue command skeleton
Refs: #48
2026-09-13 12:25:08 +02:00
nocode 4cc6964a3c feat(fws): add fws information command
Refs: #35
2026-09-13 12:25:08 +02:00
nocode 3aa17e5707 feat(commands): add help command
Refs: #25
2026-09-13 12:25:07 +02:00
nocode 9cb2a7356d feat(members): add member leave event handler
Refs: #62
2026-09-13 12:25:07 +02:00
nocode aa404dd588 feat(members): add member join event handler
Refs: #62
2026-09-13 12:25:07 +02:00
nocode 017764d5b8 feat(commands): dispatch slash commands with access control
Refs: #30
2026-09-13 12:25:07 +02:00
nocode 8f48efdcdc feat(discord): log shard disconnections
Refs: #23
2026-09-13 12:25:07 +02:00
nocode e9c110a752 feat(discord): log discord client errors
Refs: #27
2026-09-13 12:25:07 +02:00
nocode 0fb20d120a feat(discord): handle client ready event
Refs: #22
2026-09-13 12:25:06 +02:00
nocode fb63cc9a2f feat(webhooks): add http server for gitea webhooks
Refs: #75
2026-09-13 12:25:06 +02:00
nocode 7a7d8e6fcd feat(webhooks): validate and deduplicate gitea webhook events
Refs: #75
2026-09-13 12:25:06 +02:00
nocode 13f8e24e54 feat(notifications): add notification dispatch service
Refs: #74
2026-09-13 12:25:06 +02:00
nocode 6fca3b7ec4 feat(gitea): add gitea api client
Refs: #42
2026-09-13 12:25:06 +02:00
nocode 856e7ba321 feat(ui): add link buttons builder
Refs: #99
2026-09-13 12:25:05 +02:00
nocode 94dab89791 feat(ui): add standard embed builders
Refs: #98
2026-09-13 12:25:05 +02:00
nocode f56e837e58 feat(utils): add cooldown guard against duplicate actions
Refs: #111
2026-09-13 12:25:05 +02:00
nocode 4205ed5d5b feat(utils): add retry helper with exponential backoff
Refs: #108
2026-09-13 12:25:05 +02:00
nocode de64a0eaf2 feat(database): add event log repository
Refs: #93
2026-09-13 12:25:05 +02:00
nocode 910cf3252f feat(database): add guild settings repository
Refs: #33
2026-09-13 12:25:05 +02:00
nocode 5716d248d3 feat(database): initialize sqlite connection and migrations
Refs: #16
2026-09-13 12:25:04 +02:00
nocode a2520fe787 feat(database): add initial sqlite schema
Refs: #16
2026-09-13 12:25:04 +02:00
nocode 34da3eb647 feat(discord): add event loader
Refs: #22
2026-09-13 12:25:04 +02:00
nocode 15e7279fc0 feat(commands): add slash command loader
Refs: #24
2026-09-13 12:25:04 +02:00
nocode baf8db059b feat(discord): create client with required gateway intents
Refs: #21
2026-09-13 12:25:04 +02:00
nocode 2085f570a8 feat(auth): add centralized permission checks
Refs: #29
2026-09-13 12:25:04 +02:00
nocode c03027e819 feat(observability): add json logger with secret masking
Refs: #17
2026-09-13 12:25:03 +02:00
nocode bba2ee7520 feat(core): add typed application errors
Refs: #17
2026-09-13 12:25:03 +02:00
nocode eca9bbed9f feat(config): add colors, access levels and ticket categories
Refs: #28
2026-09-13 12:25:03 +02:00
nocode d1388b6e93 feat(config): load and expose environment settings
Refs: #15
2026-09-13 12:25:03 +02:00
nocode 1cf7b1f6c8 build(config): add environment variables example
Refs: #15
2026-09-13 12:25:03 +02:00
nocode de328aff2e build(quality): configure eslint flat config
Refs: #18
2026-09-13 12:25:03 +02:00
nocode 25cc44d471 build(quality): add prettier ignore rules
Refs: #18
2026-09-13 12:25:02 +02:00
nocode bafda6b1f5 build(quality): configure prettier
Refs: #18
2026-09-13 12:25:02 +02:00
nocode d4d58544c3 build(deps): add npm lockfile 2026-09-13 12:25:02 +02:00
nocode f57a4f231d build(deps): add package manifest with discord.js and npm scripts
Refs: #12
2026-09-13 12:25:02 +02:00
nocode 4693ea09c4 chore(editor): add editorconfig settings
Refs: #18
2026-09-13 12:25:02 +02:00
nocode bfd4c2611f build(security): replace python ignore rules with node.js rules
Refs: #14
2026-09-13 12:25:02 +02:00
nocode 2a91229825 docs(readme)!: Edit of the Readme
Added the correcte ReadMe text

Signed-off-by: nocode <suzuku295@gmail.com>
2026-08-28 08:52:17 +00:00