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)
10 lines
268 B
Python
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)
|