Auto-reply: allow array payloads in signature

This commit is contained in:
Peter Steinberger 2025-12-03 00:35:57 +00:00
parent 849244d93e
commit 61e76cb43b

View File

@ -44,7 +44,7 @@ export async function getReplyFromConfig(
opts?: GetReplyOptions,
configOverride?: WarelayConfig,
commandRunner: typeof runCommandWithTimeout = runCommandWithTimeout,
): Promise<ReplyPayload | undefined> {
): Promise<ReplyPayload | ReplyPayload[] | undefined> {
// Choose reply from config: static text or external command stdout.
const cfg = configOverride ?? loadConfig();
const reply = cfg.inbound?.reply;