How jt921111/hertabot works
HertaBot is a small LINE messaging bot. LINE sends webhook events to Flask’s callback, which validates the signature and dispatches messages to the registered text handler. The handler replies through the LINE Messaging API for the “轉圈圈” command and gift-code messages, and has a 1-in-100 chance to send a video for other text. The handler also builds URLs for static media. The tree shows two video files; referenced PNG previews are not present. Only the sampled app.py supports the relationships shown.
Main entry points: app.py Text handler · static Static videos
Components 5
Bot runtime
- Webhook callback
app.py - Text handler
app.py - Static videos
static
Other components
- LINE platform
- Messaging API
Connections 4
- LINE platform → Webhook callback: posts webhook
app.py - Webhook callback → Text handler: dispatches events
app.py - Text handler → Messaging API: sends replies
app.py - Text handler → Static videos: links media
app.py