clisbot 0.1.45-beta.13 → 0.1.45-beta.14
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/dist/main.js +6 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -76207,6 +76207,12 @@ class SlackSocketService {
|
|
|
76207
76207
|
allowFrom: params.route.allowUsers ?? [],
|
|
76208
76208
|
userId: senderId
|
|
76209
76209
|
})) {
|
|
76210
|
+
const explicitlyAddressed = params.wasMentioned || hasBotMention(event.text ?? "", this.botUserId);
|
|
76211
|
+
if (params.route.requireMention && !explicitlyAddressed) {
|
|
76212
|
+
debugSlackEvent("drop-shared-not-addressed", { eventId, senderId });
|
|
76213
|
+
await this.processedEventsStore.markCompleted(eventId);
|
|
76214
|
+
return;
|
|
76215
|
+
}
|
|
76210
76216
|
try {
|
|
76211
76217
|
await postSlackText(this.app.client, {
|
|
76212
76218
|
channel: channelId,
|