Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
resolve conflicts with main
Re-bin71fc73ecc459
diff --cc README.mdindex 4444d5b39,376930f9b..36cb65b59--- a/README.md+++ b/README.md@@@ -162,13 -169,13 +169,14 @@@ nanobot agent -m "Hello from my local L## π¬ Chat Apps- Talk to your nanobot through Telegram, Discord, or WhatsApp β anytime, anywhere.-Talk to your nanobot through Telegram, WhatsApp, or Feishu β anytime, anywhere.++Talk to your nanobot through Telegram, Discord, WhatsApp, or Feishu β anytime, anywhere.| Channel | Setup ||---------|-------|| **Telegram** | Easy (just a token) |+| **Discord** | Easy (bot token + intents) || **WhatsApp** | Medium (scan QR) |+ | **Feishu** | Medium (app credentials) |<details><summary><b>Telegram</b> (Recommended)</summary>@@@ -325,13 -338,16 +383,21 @@@ Config file: `~/.nanobot/config.json"token": "123456:ABC...","allowFrom": ["123456789"]},+ "discord": {+ "enabled": false,+ "token": "YOUR_DISCORD_BOT_TOKEN",+ "allowFrom": ["YOUR_USER_ID"]+ },"whatsapp": {"enabled": false+ },+ "feishu": {+ "enabled": false,+ "appId": "cli_xxx",+ "appSecret": "xxx",+ "encryptKey": "",+ "verificationToken": "",+ "allowFrom": []}},"tools": {diff --cc nanobot/channels/manager.pyindex cf5f2412c,979d01e4a..64ced48a8--- a/nanobot/channels/manager.py+++ b/nanobot/channels/manager.py@@@ -55,17 -55,17 +55,28 @@@ class ChannelManagerlogger.info("WhatsApp channel enabled")except ImportError as e:logger.warning(f"WhatsApp channel not available: {e}")++ # Discord channel+ if self.config.channels.discord.enabled:+ try:+ from nanobot.channels.discord import DiscordChannel+ self.channels["discord"] = DiscordChannel(+ self.config.channels.discord, self.bus+ )+ logger.info("Discord channel enabled")+ except ImportError as e:+ logger.warning(f"Discord channel not available: {e}")++ # Feishu channel+ if self.config.channels.feishu.enabled:+ try:+ from nanobot.channels.feishu import FeishuChannel+ self.channels["feishu"] = FeishuChannel(+ self.config.channels.feishu, self.bus+ )+ logger.info("Feishu channel enabled")+ except ImportError as e:+ logger.warning(f"Feishu channel not available: {e}")async def start_all(self) -> None:"""Start WhatsApp channel and the outbound dispatcher."""diff --cc nanobot/config/schema.pyindex 34a036d96,2af90db7a..7f8c495d0--- a/nanobot/config/schema.py+++ b/nanobot/config/schema.py@@@ -17,22 -17,24 +17,34 @@@ class TelegramConfig(BaseModel)enabled: bool = Falsetoken: str = "" # Bot token from @BotFatherallow_from: list[str] = Field(default_factory=list) # Allowed user IDs or usernames+ proxy: str | None = None # HTTP/SOCKS5 proxy URL, e.g. "http://127.0.0.1:7890" or "socks5://127.0.0.1:1080"+++ class FeishuConfig(BaseModel):+ """Feishu/Lark channel configuration using WebSocket long connection."""+ enabled: bool = False+ app_id: str = "" # App ID from Feishu Open Platform+ app_secret: str = "" # App Secret from Feishu Open Platform+ encrypt_key: str = "" # Encrypt Key for event subscription (optional)+ verification_token: str = "" # Verification Token for event subscription (optional)+ allow_from: list[str] = Field(default_factory=list) # Allowed user open_ids+class DiscordConfig(BaseModel):+ """Discord channel configuration."""+ enabled: bool = False+ token: str = "" # Bot token from Discord Developer Portal+ allow_from: list[str] = Field(default_factory=list) # Allowed user IDs+ gateway_url: str = "wss://gateway.discord.gg/?v=10&encoding=json"+ intents: int = 37377 # GUILDS + GUILD_MESSAGES + DIRECT_MESSAGES + MESSAGE_CONTENT++class ChannelsConfig(BaseModel):"""Configuration for chat channels."""whatsapp: WhatsAppConfig = Field(default_factory=WhatsAppConfig)telegram: TelegramConfig = Field(default_factory=TelegramConfig)+ discord: DiscordConfig = Field(default_factory=DiscordConfig)+ feishu: FeishuConfig = Field(default_factory=FeishuConfig)class AgentDefaults(BaseModel):