refactor(channels): rename moltchat integration to mochat

This commit is contained in:
tjb-tech
2026-02-09 08:50:17 +00:00
parent 20b8a2fc58
commit 3779225917
7 changed files with 92 additions and 92 deletions

View File

@@ -78,17 +78,17 @@ class ChannelManager:
except ImportError as e:
logger.warning(f"Feishu channel not available: {e}")
# Moltchat channel
if self.config.channels.moltchat.enabled:
# Mochat channel
if self.config.channels.mochat.enabled:
try:
from nanobot.channels.moltchat import MoltchatChannel
from nanobot.channels.mochat import MochatChannel
self.channels["moltchat"] = MoltchatChannel(
self.config.channels.moltchat, self.bus
self.channels["mochat"] = MochatChannel(
self.config.channels.mochat, self.bus
)
logger.info("Moltchat channel enabled")
logger.info("Mochat channel enabled")
except ImportError as e:
logger.warning(f"Moltchat channel not available: {e}")
logger.warning(f"Mochat channel not available: {e}")
async def start_all(self) -> None:
"""Start WhatsApp channel and the outbound dispatcher."""