Simford.Dong commited on
Commit
6598357
·
1 Parent(s): 3a39604

feat: integrate Feishu channel with WebSocket mode and local plugin installation

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -1
  2. README.md +1 -0
Dockerfile CHANGED
@@ -6,6 +6,11 @@ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
6
  # Install OpenClaw globally
7
  RUN npm install -g openclaw@latest
8
 
 
 
 
 
 
9
  # Create config directory
10
  RUN mkdir -p /root/.openclaw
11
 
@@ -43,7 +48,11 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
43
  "GOOGLE_API_KEY": "${GEMINI_API_KEY_1}",\n\
44
  "GEMINI_API_KEY": "${GEMINI_API_KEY_1}",\n\
45
  "GOOGLE_GENERATIVE_AI_API_KEY": "${GEMINI_API_KEY_1}",\n\
46
- "PALM_API_KEY": "${GEMINI_API_KEY_1}"\n\
 
 
 
 
47
  },\n\
48
  "gateway": {\n\
49
  "mode": "local",\n\
@@ -58,6 +67,15 @@ if [ ! -f /root/.openclaw/openclaw.json ]; then\n\
58
  "allowInsecureAuth": true\n\
59
  }\n\
60
  },\n\
 
 
 
 
 
 
 
 
 
61
  "agents": {\n\
62
  "defaults": {\n\
63
  "model": {\n\
 
6
  # Install OpenClaw globally
7
  RUN npm install -g openclaw@latest
8
 
9
+ # Download and install Feishu plugin locally
10
+ RUN curl -L -O https://registry.npmjs.org/@m1heng-clawd/feishu/-/feishu-0.1.3.tgz && \
11
+ openclaw plugins install ./feishu-0.1.3.tgz && \
12
+ rm feishu-0.1.3.tgz
13
+
14
  # Create config directory
15
  RUN mkdir -p /root/.openclaw
16
 
 
48
  "GOOGLE_API_KEY": "${GEMINI_API_KEY_1}",\n\
49
  "GEMINI_API_KEY": "${GEMINI_API_KEY_1}",\n\
50
  "GOOGLE_GENERATIVE_AI_API_KEY": "${GEMINI_API_KEY_1}",\n\
51
+ "PALM_API_KEY": "${GEMINI_API_KEY_1}",\n\
52
+ "FEISHU_APP_ID": "${FEISHU_APP_ID}",\n\
53
+ "FEISHU_APP_SECRET": "${FEISHU_APP_SECRET}",\n\
54
+ "FEISHU_ENCRYPT_KEY": "${FEISHU_ENCRYPT_KEY}",\n\
55
+ "FEISHU_VERIFICATION_TOKEN": "${FEISHU_VERIFICATION_TOKEN}"\n\
56
  },\n\
57
  "gateway": {\n\
58
  "mode": "local",\n\
 
67
  "allowInsecureAuth": true\n\
68
  }\n\
69
  },\n\
70
+ "channels": {\n\
71
+ "feishu": {\n\
72
+ "enabled": true,\n\
73
+ "appId": "${FEISHU_APP_ID}",\n\
74
+ "appSecret": "${FEISHU_APP_SECRET}",\n\
75
+ "connectionMode": "websocket",\n\
76
+ "domain": "feishu"\n\
77
+ }\n\
78
+ },\n\
79
  "agents": {\n\
80
  "defaults": {\n\
81
  "model": {\n\
README.md CHANGED
@@ -76,6 +76,7 @@ OpenClaw supports multiple messaging channels. Configure them in the Control UI
76
  | Discord | `DISCORD_TOKEN` |
77
  | Slack | `SLACK_BOT_TOKEN` + `SLACK_APP_TOKEN` |
78
  | Telegram | `TELEGRAM_BOT_TOKEN` |
 
79
  | WhatsApp | Configure via Control UI (pairing required) |
80
  | Google Chat | Configure via Control UI |
81
  | Signal | Configure via Control UI |
 
76
  | Discord | `DISCORD_TOKEN` |
77
  | Slack | `SLACK_BOT_TOKEN` + `SLACK_APP_TOKEN` |
78
  | Telegram | `TELEGRAM_BOT_TOKEN` |
79
+ | Feishu | `FEISHU_APP_ID`, `FEISHU_APP_SECRET`, `FEISHU_ENCRYPT_KEY`, `FEISHU_VERIFICATION_TOKEN` |
80
  | WhatsApp | Configure via Control UI (pairing required) |
81
  | Google Chat | Configure via Control UI |
82
  | Signal | Configure via Control UI |