Skip to content

pipeline & dockerfile#2

Open
lxfrdl wants to merge 6 commits into
makerspacebonn:mainfrom
lxfrdl:main
Open

pipeline & dockerfile#2
lxfrdl wants to merge 6 commits into
makerspacebonn:mainfrom
lxfrdl:main

Conversation

@lxfrdl
Copy link
Copy Markdown
Contributor

@lxfrdl lxfrdl commented Apr 21, 2026

Pipeline repaired and updated; multiarch build integrated

agiledivider added a commit that referenced this pull request May 4, 2026
…type

Resolves BACKLOG #1 and #2.

#1 — DiscordHandlerOptions.logger was typed optional but used
unconditionally throughout the class; constructing without a logger
threw TypeError on every internal log call. The constructor now
defaults to pino({ level: "silent" }) and the field is typed as
required BaseLogger so the compiler can prove every `this.logger.X`
call is safe. Same defaulting applied to ActionLoader.

#2 — `private services: any` initialised as `[]` and used as an
object map worked only because string-keyed properties on arrays
remain enumerable in object spread. Replaced with
`Record<string, unknown> = {}` (field initialiser; constructor
assignment removed). Semantics unchanged.

Two new tests verify the bot constructs and start()s without a logger.
Type-check error count drops from 86 to 76 (-10, all of which were
"Object is possibly 'undefined'" on logger calls).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant