chorus/bot/chorus_bot/modality_map.py
pyr0ball 669bb3456a feat(bot): add modality map, config loader, and backend client
Implements core bot infrastructure:
- modality_map: channel name to modality string mapping (personal_text, voice, fb_messenger, nd_messenger)
- config: Config dataclass with env-driven configuration loading for Discord, backend, and email IMAP credentials
- backend_client: async HTTP client for posting items to backend /items endpoint

All modality_map tests passing (3/3)
2026-07-13 13:48:39 -07:00

10 lines
268 B
Python

CHANNEL_TO_MODALITY = {
"personal-text": "personal_text",
"voice": "voice",
"fb-messenger": "fb_messenger",
"nd-messenger": "nd_messenger",
}
def modality_for_channel(channel_name: str) -> str | None:
return CHANNEL_TO_MODALITY.get(channel_name)