@zhin.js/adapter-slack 1.0.77 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +642 -0
- package/README.md +112 -158
- package/adapters/slack.js +40 -0
- package/adapters/slack.ts +45 -0
- package/agent/PERMITS.md +24 -0
- package/{skills/slack/SKILL.md → agent/skills/slack.md} +2 -0
- package/agent/tools/add_reaction.ts +29 -0
- package/agent/tools/archive_channel.ts +21 -0
- package/agent/tools/edit_message.ts +25 -0
- package/agent/tools/invite_to_channel.ts +23 -0
- package/agent/tools/pin_message.ts +23 -0
- package/agent/tools/remove_reaction.ts +32 -0
- package/agent/tools/set_purpose.ts +23 -0
- package/agent/tools/set_topic.ts +23 -0
- package/agent/tools/unarchive.ts +21 -0
- package/agent/tools/unpin_message.ts +23 -0
- package/agent/tools/user_info.ts +29 -0
- package/commands/endpoint/add/[id].js +3 -0
- package/commands/endpoint/add/[id].ts +3 -0
- package/commands/endpoint/list.js +3 -0
- package/commands/endpoint/list.ts +3 -0
- package/commands/endpoint/remove/[id].js +3 -0
- package/commands/endpoint/remove/[id].ts +3 -0
- package/lib/client.d.ts +25 -0
- package/lib/client.js +2 -0
- package/lib/endpoint.d.ts +153 -0
- package/lib/endpoint.js +425 -0
- package/lib/index.d.ts +10 -10
- package/lib/index.js +10 -242
- package/lib/markdown-to-mrkdwn.d.ts +9 -0
- package/lib/markdown-to-mrkdwn.js +121 -0
- package/lib/mrkdwn-to-markdown.d.ts +4 -0
- package/lib/mrkdwn-to-markdown.js +30 -0
- package/lib/platform-permit.d.ts +15 -0
- package/lib/platform-permit.js +43 -0
- package/lib/protocol.d.ts +153 -0
- package/lib/protocol.js +272 -0
- package/lib/side-event-dispatch.d.ts +4 -0
- package/lib/side-event-dispatch.js +45 -0
- package/lib/slack-endpoint-commands.d.ts +1 -0
- package/lib/slack-endpoint-commands.js +18 -0
- package/lib/slack-inbound-filter.d.ts +12 -0
- package/lib/slack-inbound-filter.js +46 -0
- package/lib/slack-message-ref.d.ts +7 -0
- package/lib/slack-message-ref.js +17 -0
- package/lib/slack-outbound.d.ts +24 -0
- package/lib/slack-outbound.js +111 -0
- package/lib/slack-reaction.d.ts +1 -0
- package/lib/slack-reaction.js +26 -0
- package/lib/slack-response-url.d.ts +5 -0
- package/lib/slack-response-url.js +16 -0
- package/lib/slack-runtime-state.d.ts +1 -0
- package/lib/slack-runtime-state.js +6 -0
- package/lib/webhook.d.ts +14 -0
- package/lib/webhook.js +72 -0
- package/package.json +67 -15
- package/plugin.js +19 -0
- package/schema.json +95 -0
- package/src/client.ts +30 -0
- package/src/endpoint.ts +526 -0
- package/src/index.ts +59 -265
- package/src/markdown-to-mrkdwn.ts +117 -0
- package/src/mrkdwn-to-markdown.ts +29 -0
- package/src/platform-permit.ts +59 -0
- package/src/protocol.ts +435 -0
- package/src/side-event-dispatch.ts +54 -0
- package/src/slack-endpoint-commands.ts +19 -0
- package/src/slack-inbound-filter.ts +60 -0
- package/src/slack-message-ref.ts +18 -0
- package/src/slack-outbound.ts +170 -0
- package/src/slack-reaction.ts +23 -0
- package/src/slack-response-url.ts +26 -0
- package/src/slack-runtime-state.ts +7 -0
- package/src/webhook.ts +106 -0
- package/lib/adapter.d.ts +0 -16
- package/lib/adapter.d.ts.map +0 -1
- package/lib/adapter.js +0 -43
- package/lib/adapter.js.map +0 -1
- package/lib/bot.d.ts +0 -106
- package/lib/bot.d.ts.map +0 -1
- package/lib/bot.js +0 -628
- package/lib/bot.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/types.d.ts +0 -17
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/plugin.yml +0 -3
- package/src/adapter.ts +0 -52
- package/src/bot.ts +0 -688
- package/src/types.ts +0 -18
package/lib/bot.js
DELETED
|
@@ -1,628 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slack Bot 实现
|
|
3
|
-
*/
|
|
4
|
-
import { App as SlackApp, LogLevel } from "@slack/bolt";
|
|
5
|
-
import { WebClient } from "@slack/web-api";
|
|
6
|
-
import { formatCompact, Message, segment } from 'zhin.js';
|
|
7
|
-
export class SlackBot {
|
|
8
|
-
adapter;
|
|
9
|
-
$config;
|
|
10
|
-
$connected;
|
|
11
|
-
/** 延迟到 `$connect`,避免子类 mock `$connect` 时仍在构造函数里创建 Bolt/WebClient(会在后台触发 Slack API) */
|
|
12
|
-
app;
|
|
13
|
-
client;
|
|
14
|
-
get logger() {
|
|
15
|
-
return this.adapter.plugin.logger;
|
|
16
|
-
}
|
|
17
|
-
get $id() {
|
|
18
|
-
return this.$config.name;
|
|
19
|
-
}
|
|
20
|
-
constructor(adapter, $config) {
|
|
21
|
-
this.adapter = adapter;
|
|
22
|
-
this.$config = $config;
|
|
23
|
-
this.$connected = false;
|
|
24
|
-
}
|
|
25
|
-
#ensureSlackRuntime() {
|
|
26
|
-
if (this.app && this.client)
|
|
27
|
-
return;
|
|
28
|
-
const $config = this.$config;
|
|
29
|
-
if ($config.socketMode && $config.appToken) {
|
|
30
|
-
this.app = new SlackApp({
|
|
31
|
-
token: $config.token,
|
|
32
|
-
signingSecret: $config.signingSecret,
|
|
33
|
-
appToken: $config.appToken,
|
|
34
|
-
socketMode: true,
|
|
35
|
-
logLevel: $config.logLevel || LogLevel.INFO,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
this.app = new SlackApp({
|
|
40
|
-
token: $config.token,
|
|
41
|
-
signingSecret: $config.signingSecret,
|
|
42
|
-
socketMode: false,
|
|
43
|
-
logLevel: $config.logLevel || LogLevel.INFO,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
this.client = new WebClient($config.token);
|
|
47
|
-
}
|
|
48
|
-
async $connect() {
|
|
49
|
-
this.#ensureSlackRuntime();
|
|
50
|
-
try {
|
|
51
|
-
// Set up message event handler
|
|
52
|
-
this.app.message(async ({ message, say }) => {
|
|
53
|
-
await this.handleSlackMessage(message);
|
|
54
|
-
});
|
|
55
|
-
// Set up app mention handler
|
|
56
|
-
this.app.event("app_mention", async ({ event, say }) => {
|
|
57
|
-
await this.handleSlackMessage(event);
|
|
58
|
-
});
|
|
59
|
-
// Start the app
|
|
60
|
-
const port = this.$config.port || 3000;
|
|
61
|
-
if (this.$config.socketMode) {
|
|
62
|
-
await this.app.start();
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
await this.app.start(port);
|
|
66
|
-
}
|
|
67
|
-
this.$connected = true;
|
|
68
|
-
// Get bot info
|
|
69
|
-
const authTest = await this.client.auth.test();
|
|
70
|
-
this.logger.info(formatCompact({ bot: this.$config.name, user: authTest.user }));
|
|
71
|
-
if (!this.$config.socketMode) {
|
|
72
|
-
this.logger.info(formatCompact({ op: "listen", port }));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (error) {
|
|
76
|
-
this.logger.error("Failed to connect Slack bot:", error);
|
|
77
|
-
this.$connected = false;
|
|
78
|
-
throw error;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
async $disconnect() {
|
|
82
|
-
if (!this.app) {
|
|
83
|
-
this.$connected = false;
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
try {
|
|
87
|
-
await this.app.stop();
|
|
88
|
-
this.$connected = false;
|
|
89
|
-
this.logger.info(formatCompact({ op: "disconnect", bot: this.$config.name }));
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
this.logger.error("Error disconnecting Slack bot:", error);
|
|
93
|
-
throw error;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
async handleSlackMessage(msg) {
|
|
97
|
-
// Ignore bot messages and message changes
|
|
98
|
-
if ("subtype" in msg && (msg.subtype === "bot_message" || msg.subtype === "message_changed")) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
const message = this.$formatMessage(msg);
|
|
102
|
-
this.adapter.emit("message.receive", message);
|
|
103
|
-
this.logger.debug(`${this.$config.name} recv ${message.$channel.type}(${message.$channel.id}): ${segment.raw(message.$content)}`);
|
|
104
|
-
}
|
|
105
|
-
$formatMessage(msg) {
|
|
106
|
-
// Determine channel type based on channel ID
|
|
107
|
-
const channelType = "channel_type" in msg && msg.channel_type === "im" ? "private" : "group";
|
|
108
|
-
const channelId = msg.channel;
|
|
109
|
-
// Parse message content
|
|
110
|
-
const content = this.parseMessageContent(msg);
|
|
111
|
-
// Extract user info safely
|
|
112
|
-
const userId = ("user" in msg ? msg.user : "") || "";
|
|
113
|
-
const userName = ("username" in msg ? msg.username : null) || userId || "Unknown";
|
|
114
|
-
const messageText = ("text" in msg ? msg.text : "") || "";
|
|
115
|
-
const result = Message.from(msg, {
|
|
116
|
-
$id: msg.ts,
|
|
117
|
-
$adapter: "slack",
|
|
118
|
-
$bot: this.$config.name,
|
|
119
|
-
$sender: {
|
|
120
|
-
id: userId,
|
|
121
|
-
name: userName,
|
|
122
|
-
},
|
|
123
|
-
$channel: {
|
|
124
|
-
id: channelId,
|
|
125
|
-
type: channelType,
|
|
126
|
-
},
|
|
127
|
-
$content: content,
|
|
128
|
-
$raw: messageText,
|
|
129
|
-
$timestamp: parseFloat(msg.ts) * 1000,
|
|
130
|
-
$recall: async () => {
|
|
131
|
-
try {
|
|
132
|
-
await this.client.chat.delete({
|
|
133
|
-
channel: channelId,
|
|
134
|
-
ts: result.$id,
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
catch (error) {
|
|
138
|
-
this.logger.error("Error recalling Slack message:", error);
|
|
139
|
-
throw error;
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
$reply: async (content, quote) => {
|
|
143
|
-
if (!Array.isArray(content))
|
|
144
|
-
content = [content];
|
|
145
|
-
const sendOptions = {
|
|
146
|
-
channel: channelId,
|
|
147
|
-
};
|
|
148
|
-
// Handle thread reply
|
|
149
|
-
if (quote) {
|
|
150
|
-
const threadTs = typeof quote === "boolean" ? result.$id : quote;
|
|
151
|
-
sendOptions.thread_ts = threadTs;
|
|
152
|
-
}
|
|
153
|
-
return await this.adapter.sendMessage({
|
|
154
|
-
context: "slack",
|
|
155
|
-
bot: this.$config.name,
|
|
156
|
-
id: channelId,
|
|
157
|
-
type: "channel",
|
|
158
|
-
content: content,
|
|
159
|
-
});
|
|
160
|
-
},
|
|
161
|
-
});
|
|
162
|
-
return result;
|
|
163
|
-
}
|
|
164
|
-
parseMessageContent(msg) {
|
|
165
|
-
const segments = [];
|
|
166
|
-
// Handle text
|
|
167
|
-
if ("text" in msg && msg.text) {
|
|
168
|
-
// Parse Slack formatting
|
|
169
|
-
segments.push(...this.parseSlackText(msg.text));
|
|
170
|
-
}
|
|
171
|
-
// Handle files
|
|
172
|
-
if ("files" in msg && msg.files) {
|
|
173
|
-
for (const file of msg.files) {
|
|
174
|
-
if (file.mimetype?.startsWith("image/")) {
|
|
175
|
-
segments.push({
|
|
176
|
-
type: "image",
|
|
177
|
-
data: {
|
|
178
|
-
id: file.id,
|
|
179
|
-
name: file.name,
|
|
180
|
-
url: file.url_private || file.permalink,
|
|
181
|
-
size: file.size,
|
|
182
|
-
mimetype: file.mimetype,
|
|
183
|
-
},
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
else if (file.mimetype?.startsWith("video/")) {
|
|
187
|
-
segments.push({
|
|
188
|
-
type: "video",
|
|
189
|
-
data: {
|
|
190
|
-
id: file.id,
|
|
191
|
-
name: file.name,
|
|
192
|
-
url: file.url_private || file.permalink,
|
|
193
|
-
size: file.size,
|
|
194
|
-
mimetype: file.mimetype,
|
|
195
|
-
},
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
else if (file.mimetype?.startsWith("audio/")) {
|
|
199
|
-
segments.push({
|
|
200
|
-
type: "audio",
|
|
201
|
-
data: {
|
|
202
|
-
id: file.id,
|
|
203
|
-
name: file.name,
|
|
204
|
-
url: file.url_private || file.permalink,
|
|
205
|
-
size: file.size,
|
|
206
|
-
mimetype: file.mimetype,
|
|
207
|
-
},
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
segments.push({
|
|
212
|
-
type: "file",
|
|
213
|
-
data: {
|
|
214
|
-
id: file.id,
|
|
215
|
-
name: file.name,
|
|
216
|
-
url: file.url_private || file.permalink,
|
|
217
|
-
size: file.size,
|
|
218
|
-
mimetype: file.mimetype,
|
|
219
|
-
},
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
// Handle attachments
|
|
225
|
-
if ("attachments" in msg && msg.attachments) {
|
|
226
|
-
for (const attachment of msg.attachments) {
|
|
227
|
-
if (attachment.image_url) {
|
|
228
|
-
segments.push({
|
|
229
|
-
type: "image",
|
|
230
|
-
data: {
|
|
231
|
-
url: attachment.image_url,
|
|
232
|
-
title: attachment.title,
|
|
233
|
-
text: attachment.text,
|
|
234
|
-
},
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return segments.length > 0
|
|
240
|
-
? segments
|
|
241
|
-
: [{ type: "text", data: { text: "" } }];
|
|
242
|
-
}
|
|
243
|
-
parseSlackText(text) {
|
|
244
|
-
const segments = [];
|
|
245
|
-
let lastIndex = 0;
|
|
246
|
-
// Match user mentions <@U12345678>
|
|
247
|
-
const userMentionRegex = /<@([UW][A-Z0-9]+)(?:\|([^>]+))?>/g;
|
|
248
|
-
// Match channel mentions <#C12345678|general>
|
|
249
|
-
const channelMentionRegex = /<#([C][A-Z0-9]+)(?:\|([^>]+))?>/g;
|
|
250
|
-
// Match links <http://example.com|Example>
|
|
251
|
-
const linkRegex = /<(https?:\/\/[^|>]+)(?:\|([^>]+))?>/g;
|
|
252
|
-
const allMatches = [];
|
|
253
|
-
// Collect all matches
|
|
254
|
-
let match;
|
|
255
|
-
while ((match = userMentionRegex.exec(text)) !== null) {
|
|
256
|
-
allMatches.push({ match, type: "user" });
|
|
257
|
-
}
|
|
258
|
-
while ((match = channelMentionRegex.exec(text)) !== null) {
|
|
259
|
-
allMatches.push({ match, type: "channel" });
|
|
260
|
-
}
|
|
261
|
-
while ((match = linkRegex.exec(text)) !== null) {
|
|
262
|
-
allMatches.push({ match, type: "link" });
|
|
263
|
-
}
|
|
264
|
-
// Sort by position
|
|
265
|
-
allMatches.sort((a, b) => a.match.index - b.match.index);
|
|
266
|
-
// Process matches
|
|
267
|
-
for (const { match, type } of allMatches) {
|
|
268
|
-
const matchStart = match.index;
|
|
269
|
-
const matchEnd = matchStart + match[0].length;
|
|
270
|
-
// Add text before match
|
|
271
|
-
if (matchStart > lastIndex) {
|
|
272
|
-
const beforeText = text.slice(lastIndex, matchStart);
|
|
273
|
-
if (beforeText.trim()) {
|
|
274
|
-
segments.push({ type: "text", data: { text: beforeText } });
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
// Add special segment
|
|
278
|
-
switch (type) {
|
|
279
|
-
case "user":
|
|
280
|
-
segments.push({
|
|
281
|
-
type: "at",
|
|
282
|
-
data: {
|
|
283
|
-
id: match[1],
|
|
284
|
-
name: match[2] || match[1],
|
|
285
|
-
text: match[0],
|
|
286
|
-
},
|
|
287
|
-
});
|
|
288
|
-
break;
|
|
289
|
-
case "channel":
|
|
290
|
-
segments.push({
|
|
291
|
-
type: "channel_mention",
|
|
292
|
-
data: {
|
|
293
|
-
id: match[1],
|
|
294
|
-
name: match[2] || match[1],
|
|
295
|
-
text: match[0],
|
|
296
|
-
},
|
|
297
|
-
});
|
|
298
|
-
break;
|
|
299
|
-
case "link":
|
|
300
|
-
segments.push({
|
|
301
|
-
type: "link",
|
|
302
|
-
data: {
|
|
303
|
-
url: match[1],
|
|
304
|
-
text: match[2] || match[1],
|
|
305
|
-
},
|
|
306
|
-
});
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
lastIndex = matchEnd;
|
|
310
|
-
}
|
|
311
|
-
// Add remaining text
|
|
312
|
-
if (lastIndex < text.length) {
|
|
313
|
-
const remainingText = text.slice(lastIndex);
|
|
314
|
-
if (remainingText.trim()) {
|
|
315
|
-
segments.push({ type: "text", data: { text: remainingText } });
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return segments.length > 0
|
|
319
|
-
? segments
|
|
320
|
-
: [{ type: "text", data: { text } }];
|
|
321
|
-
}
|
|
322
|
-
async $sendMessage(options) {
|
|
323
|
-
try {
|
|
324
|
-
const result = await this.sendContentToChannel(options.id, options.content);
|
|
325
|
-
this.logger.debug(`${this.$config.name} send ${options.type}(${options.id}): ${segment.raw(options.content)}`);
|
|
326
|
-
return result.ts || "";
|
|
327
|
-
}
|
|
328
|
-
catch (error) {
|
|
329
|
-
this.logger.error("Failed to send Slack message:", error);
|
|
330
|
-
throw error;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
async sendContentToChannel(channel, content, extraOptions = {}) {
|
|
334
|
-
if (!Array.isArray(content))
|
|
335
|
-
content = [content];
|
|
336
|
-
let textContent = "";
|
|
337
|
-
const attachments = [];
|
|
338
|
-
for (const segment of content) {
|
|
339
|
-
if (typeof segment === "string") {
|
|
340
|
-
textContent += segment;
|
|
341
|
-
continue;
|
|
342
|
-
}
|
|
343
|
-
const { type, data } = segment;
|
|
344
|
-
switch (type) {
|
|
345
|
-
case "text":
|
|
346
|
-
textContent += data.text || "";
|
|
347
|
-
break;
|
|
348
|
-
case "at":
|
|
349
|
-
textContent += `<@${data.id}>`;
|
|
350
|
-
break;
|
|
351
|
-
case "channel_mention":
|
|
352
|
-
textContent += `<#${data.id}>`;
|
|
353
|
-
break;
|
|
354
|
-
case "link":
|
|
355
|
-
if (data.text && data.text !== data.url) {
|
|
356
|
-
textContent += `<${data.url}|${data.text}>`;
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
textContent += `<${data.url}>`;
|
|
360
|
-
}
|
|
361
|
-
break;
|
|
362
|
-
case "image":
|
|
363
|
-
if (data.url) {
|
|
364
|
-
attachments.push({
|
|
365
|
-
image_url: data.url,
|
|
366
|
-
title: data.name || data.title,
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
break;
|
|
370
|
-
case "file":
|
|
371
|
-
// Files need to be uploaded separately
|
|
372
|
-
if (data.file) {
|
|
373
|
-
try {
|
|
374
|
-
await this.client.files.upload({
|
|
375
|
-
channels: channel,
|
|
376
|
-
file: data.file,
|
|
377
|
-
filename: data.name,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
catch (error) {
|
|
381
|
-
this.logger.error("Failed to upload file:", error);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
break;
|
|
385
|
-
default:
|
|
386
|
-
textContent += data.text || `[${type}]`;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
// Send message
|
|
390
|
-
const messageOptions = {
|
|
391
|
-
channel,
|
|
392
|
-
text: textContent.trim() || "Message",
|
|
393
|
-
...extraOptions,
|
|
394
|
-
};
|
|
395
|
-
if (attachments.length > 0) {
|
|
396
|
-
messageOptions.attachments = attachments;
|
|
397
|
-
}
|
|
398
|
-
const result = await this.client.chat.postMessage(messageOptions);
|
|
399
|
-
return result.message || {};
|
|
400
|
-
}
|
|
401
|
-
async $recallMessage(id) {
|
|
402
|
-
// Slack requires both channel and ts (timestamp) to delete a message
|
|
403
|
-
// The Bot interface only provides message ID (ts), making recall impossible
|
|
404
|
-
// Users should use message.$recall() instead, which has the full context
|
|
405
|
-
throw new Error("SlackBot.$recallMessage: Message recall not supported without channel information. " +
|
|
406
|
-
"Use message.$recall() method instead, which contains the required context.");
|
|
407
|
-
}
|
|
408
|
-
// ==================== 工作区管理 API ====================
|
|
409
|
-
/**
|
|
410
|
-
* 邀请用户到频道
|
|
411
|
-
* @param channel 频道 ID
|
|
412
|
-
* @param users 用户 ID 列表
|
|
413
|
-
*/
|
|
414
|
-
async inviteToChannel(channel, users) {
|
|
415
|
-
try {
|
|
416
|
-
await this.client.conversations.invite({ channel, users: users.join(',') });
|
|
417
|
-
this.logger.debug(formatCompact({ op: "invite", bot: this.$id, channel, users: users.join(",") }));
|
|
418
|
-
return true;
|
|
419
|
-
}
|
|
420
|
-
catch (error) {
|
|
421
|
-
this.logger.error(`Slack Bot ${this.$id} 邀请用户失败:`, error);
|
|
422
|
-
throw error;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
/**
|
|
426
|
-
* 从频道踢出用户
|
|
427
|
-
* @param channel 频道 ID
|
|
428
|
-
* @param user 用户 ID
|
|
429
|
-
*/
|
|
430
|
-
async kickFromChannel(channel, user) {
|
|
431
|
-
try {
|
|
432
|
-
await this.client.conversations.kick({ channel, user });
|
|
433
|
-
this.logger.debug(formatCompact({ op: "kick", bot: this.$id, channel, user }));
|
|
434
|
-
return true;
|
|
435
|
-
}
|
|
436
|
-
catch (error) {
|
|
437
|
-
this.logger.error(`Slack Bot ${this.$id} 踢出用户失败:`, error);
|
|
438
|
-
throw error;
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* 设置频道话题
|
|
443
|
-
* @param channel 频道 ID
|
|
444
|
-
* @param topic 话题
|
|
445
|
-
*/
|
|
446
|
-
async setChannelTopic(channel, topic) {
|
|
447
|
-
try {
|
|
448
|
-
await this.client.conversations.setTopic({ channel, topic });
|
|
449
|
-
this.logger.debug(formatCompact({ op: "set_topic", bot: this.$id, channel }));
|
|
450
|
-
return true;
|
|
451
|
-
}
|
|
452
|
-
catch (error) {
|
|
453
|
-
this.logger.error(`Slack Bot ${this.$id} 设置话题失败:`, error);
|
|
454
|
-
throw error;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* 设置频道目的
|
|
459
|
-
* @param channel 频道 ID
|
|
460
|
-
* @param purpose 目的
|
|
461
|
-
*/
|
|
462
|
-
async setChannelPurpose(channel, purpose) {
|
|
463
|
-
try {
|
|
464
|
-
await this.client.conversations.setPurpose({ channel, purpose });
|
|
465
|
-
this.logger.debug(formatCompact({ op: "set_purpose", bot: this.$id, channel }));
|
|
466
|
-
return true;
|
|
467
|
-
}
|
|
468
|
-
catch (error) {
|
|
469
|
-
this.logger.error(`Slack Bot ${this.$id} 设置目的失败:`, error);
|
|
470
|
-
throw error;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
/**
|
|
474
|
-
* 归档频道
|
|
475
|
-
* @param channel 频道 ID
|
|
476
|
-
*/
|
|
477
|
-
async archiveChannel(channel) {
|
|
478
|
-
try {
|
|
479
|
-
await this.client.conversations.archive({ channel });
|
|
480
|
-
this.logger.debug(formatCompact({ op: "archive", bot: this.$id, channel }));
|
|
481
|
-
return true;
|
|
482
|
-
}
|
|
483
|
-
catch (error) {
|
|
484
|
-
this.logger.error(`Slack Bot ${this.$id} 归档频道失败:`, error);
|
|
485
|
-
throw error;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* 取消归档频道
|
|
490
|
-
* @param channel 频道 ID
|
|
491
|
-
*/
|
|
492
|
-
async unarchiveChannel(channel) {
|
|
493
|
-
try {
|
|
494
|
-
await this.client.conversations.unarchive({ channel });
|
|
495
|
-
this.logger.debug(formatCompact({ op: "unarchive", bot: this.$id, channel }));
|
|
496
|
-
return true;
|
|
497
|
-
}
|
|
498
|
-
catch (error) {
|
|
499
|
-
this.logger.error(`Slack Bot ${this.$id} 取消归档失败:`, error);
|
|
500
|
-
throw error;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
/**
|
|
504
|
-
* 重命名频道
|
|
505
|
-
* @param channel 频道 ID
|
|
506
|
-
* @param name 新名称
|
|
507
|
-
*/
|
|
508
|
-
async renameChannel(channel, name) {
|
|
509
|
-
try {
|
|
510
|
-
await this.client.conversations.rename({ channel, name });
|
|
511
|
-
this.logger.debug(formatCompact({ op: "rename", bot: this.$id, channel, name }));
|
|
512
|
-
return true;
|
|
513
|
-
}
|
|
514
|
-
catch (error) {
|
|
515
|
-
this.logger.error(`Slack Bot ${this.$id} 重命名频道失败:`, error);
|
|
516
|
-
throw error;
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* 获取频道成员列表
|
|
521
|
-
* @param channel 频道 ID
|
|
522
|
-
*/
|
|
523
|
-
async getChannelMembers(channel) {
|
|
524
|
-
try {
|
|
525
|
-
const result = await this.client.conversations.members({ channel });
|
|
526
|
-
return result.members || [];
|
|
527
|
-
}
|
|
528
|
-
catch (error) {
|
|
529
|
-
this.logger.error(`Slack Bot ${this.$id} 获取成员列表失败:`, error);
|
|
530
|
-
throw error;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* 获取频道信息
|
|
535
|
-
* @param channel 频道 ID
|
|
536
|
-
*/
|
|
537
|
-
async getChannelInfo(channel) {
|
|
538
|
-
try {
|
|
539
|
-
const result = await this.client.conversations.info({ channel });
|
|
540
|
-
return result.channel;
|
|
541
|
-
}
|
|
542
|
-
catch (error) {
|
|
543
|
-
this.logger.error(`Slack Bot ${this.$id} 获取频道信息失败:`, error);
|
|
544
|
-
throw error;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
/**
|
|
548
|
-
* 获取用户信息
|
|
549
|
-
* @param user 用户 ID
|
|
550
|
-
*/
|
|
551
|
-
async getUserInfo(user) {
|
|
552
|
-
try {
|
|
553
|
-
const result = await this.client.users.info({ user });
|
|
554
|
-
return result.user;
|
|
555
|
-
}
|
|
556
|
-
catch (error) {
|
|
557
|
-
this.logger.error(`Slack Bot ${this.$id} 获取用户信息失败:`, error);
|
|
558
|
-
throw error;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* 添加消息反应
|
|
563
|
-
* @param channel 频道 ID
|
|
564
|
-
* @param timestamp 消息时间戳
|
|
565
|
-
* @param name 表情名称
|
|
566
|
-
*/
|
|
567
|
-
async addReaction(channel, timestamp, name) {
|
|
568
|
-
try {
|
|
569
|
-
await this.client.reactions.add({ channel, timestamp, name });
|
|
570
|
-
this.logger.debug(formatCompact({ op: "reaction_add", bot: this.$id, name }));
|
|
571
|
-
return true;
|
|
572
|
-
}
|
|
573
|
-
catch (error) {
|
|
574
|
-
this.logger.error(`Slack Bot ${this.$id} 添加反应失败:`, error);
|
|
575
|
-
throw error;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* 移除消息反应
|
|
580
|
-
* @param channel 频道 ID
|
|
581
|
-
* @param timestamp 消息时间戳
|
|
582
|
-
* @param name 表情名称
|
|
583
|
-
*/
|
|
584
|
-
async removeReaction(channel, timestamp, name) {
|
|
585
|
-
try {
|
|
586
|
-
await this.client.reactions.remove({ channel, timestamp, name });
|
|
587
|
-
this.logger.debug(formatCompact({ op: "reaction_remove", bot: this.$id, name }));
|
|
588
|
-
return true;
|
|
589
|
-
}
|
|
590
|
-
catch (error) {
|
|
591
|
-
this.logger.error(`Slack Bot ${this.$id} 移除反应失败:`, error);
|
|
592
|
-
throw error;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
/**
|
|
596
|
-
* 置顶消息
|
|
597
|
-
* @param channel 频道 ID
|
|
598
|
-
* @param timestamp 消息时间戳
|
|
599
|
-
*/
|
|
600
|
-
async pinMessage(channel, timestamp) {
|
|
601
|
-
try {
|
|
602
|
-
await this.client.pins.add({ channel, timestamp });
|
|
603
|
-
this.logger.debug(formatCompact({ op: "pin", bot: this.$id, channel }));
|
|
604
|
-
return true;
|
|
605
|
-
}
|
|
606
|
-
catch (error) {
|
|
607
|
-
this.logger.error(`Slack Bot ${this.$id} 置顶消息失败:`, error);
|
|
608
|
-
throw error;
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
/**
|
|
612
|
-
* 取消置顶消息
|
|
613
|
-
* @param channel 频道 ID
|
|
614
|
-
* @param timestamp 消息时间戳
|
|
615
|
-
*/
|
|
616
|
-
async unpinMessage(channel, timestamp) {
|
|
617
|
-
try {
|
|
618
|
-
await this.client.pins.remove({ channel, timestamp });
|
|
619
|
-
this.logger.debug(formatCompact({ op: "unpin", bot: this.$id, channel }));
|
|
620
|
-
return true;
|
|
621
|
-
}
|
|
622
|
-
catch (error) {
|
|
623
|
-
this.logger.error(`Slack Bot ${this.$id} 取消置顶失败:`, error);
|
|
624
|
-
throw error;
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
//# sourceMappingURL=bot.js.map
|
package/lib/bot.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bot.js","sourceRoot":"","sources":["../src/bot.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,SAAS,EAAiC,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAO,OAAO,EAAkB,OAAO,EAA4B,MAAM,SAAS,CAAC;AAKzG,MAAM,OAAO,QAAQ;IAcA;IAA8B;IAbjD,UAAU,CAAU;IACpB,sFAAsF;IAC9E,GAAG,CAAY;IACf,MAAM,CAAa;IAE3B,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,CAAC;IAED,IAAI,GAAG;QACL,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3B,CAAC;IAED,YAAmB,OAAqB,EAAS,OAAuB;QAArD,YAAO,GAAP,OAAO,CAAc;QAAS,YAAO,GAAP,OAAO,CAAgB;QACtE,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,mBAAmB;QACjB,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM;YAAE,OAAO;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YAC3C,IAAI,C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