Overview of LINEBotWorker
mainLINEBotWorker is a core LINE webhook worker. It processes incoming LINE events and posts the conversation content as comments to a specified GitHub issue.
Key Capabilities:
- Signature Verification: Validates
X-Line-Signaturefor security. - Issue Binding: Can be fixed to a single
ISSUE_NUMBERor automatically create/find a unique issue based on the LINE source (group,room, oruser). - Event Support: Handles
follow,join,text,image,audio,video, andfileevents.stickerevents are ignored. - Media Handling: Images and videos are displayed as previews within GitHub issues/comments. Media files are stored in a dedicated branch (
issue-<ISSUE_NUMBER>) under the pathworkspaces/issue-<ISSUE_NUMBER>/line. - Auto-Reply: If
LINE_DEFAULT_REPLY_MESSAGEis configured, the worker sends a fixed message back using the reply token. - Monitoring: Provides a
GET /statusendpoint to check which GitHub issue the worker is currently bound to.