style: tidy auto-reply imports and formatting

This commit is contained in:
Peter Steinberger
2026-01-05 01:46:07 +01:00
parent b0dcdc4982
commit 1bad96aa2b
7 changed files with 15 additions and 18 deletions

View File

@@ -3,9 +3,8 @@ import type {
SlackEventMiddlewareArgs,
} from "@slack/bolt";
import bolt from "@slack/bolt";
import { hasControlCommand } from "../auto-reply/command-detection.js";
import { chunkText, resolveTextChunkLimit } from "../auto-reply/chunk.js";
import { hasControlCommand } from "../auto-reply/command-detection.js";
import { formatAgentEnvelope } from "../auto-reply/envelope.js";
import { getReplyFromConfig } from "../auto-reply/reply.js";
import { SILENT_REPLY_TOKEN } from "../auto-reply/tokens.js";
@@ -600,7 +599,12 @@ export async function monitorSlackProvider(opts: MonitorSlackOpts = {}) {
!hasAnyMention &&
commandAuthorized &&
hasControlCommand(message.text ?? "");
if (isRoom && channelConfig?.requireMention && !wasMentioned && !shouldBypassMention) {
if (
isRoom &&
channelConfig?.requireMention &&
!wasMentioned &&
!shouldBypassMention
) {
logger.info(
{ channel: message.channel, reason: "no-mention" },
"skipping room message",