mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-07-31 06:26:13 +00:00
Add the monkeyd module, which crawls a novel and sends the rendered PDF back as a Telegram document. Crawling and rendering come from the monkeyd-crawler submodule, resolved through a go.mod replace directive. The command is admin-only and restricted to monkeydd.com: one run makes hundreds of outbound requests over minutes, and the extractor only understands that site. Exports run one at a time and on a detached goroutine, because handlers are dispatched synchronously and an inline crawl would block every other command. The runtime image gains DejaVuSans; font discovery probes system paths and the distroless base ships none, so PDF rendering would otherwise fail in production. CI checks out submodules and the builder copies the submodule go.mod before go mod download, which needs it to resolve the build list.
4 lines
133 B
Plaintext
4 lines
133 B
Plaintext
[submodule "third_party/monkeyd-crawler"]
|
|
path = third_party/monkeyd-crawler
|
|
url = https://github.com/tiennm99/monkeyd-crawler.git
|