Expand description
§punch-channels
Channel adapters for messaging platforms in the Punch Agent Combat System.
Provides a unified ChannelAdapter trait that abstracts over different
messaging platforms (Telegram, Discord, Slack, etc.), a [ChannelRouter]
that maps platform users to fighters, and a ChannelBridge that manages
adapters and dispatches messages through the Ring.
Modules§
- adapters
- bridge
- Channel bridge — connects channel adapters to the Ring via webhook handlers.
- onboarding
- Channel onboarding guides – step-by-step setup instructions for each platform.
- router
- Channel router — maps channel+user combinations to fighter IDs.
- security
- Channel security gateway — signature verification, allowlisting, rate limiting.
Structs§
- Channel
Bridge - Manages multiple
ChannelAdapters and routes messages between them. - Channel
Status - Status of a channel adapter.
- Incoming
Message - A message received from an external messaging platform.
Enums§
- Channel
Platform - Identifies the messaging platform an adapter connects to.
Traits§
- Channel
Adapter - Abstraction over a messaging platform connection.
Functions§
- split_
message - Split a message into chunks of at most
max_lencharacters, preferring to split at newline boundaries.