Auto-reply: allow array payloads in signature
This commit is contained in:
@@ -44,7 +44,7 @@ export async function getReplyFromConfig(
|
|||||||
opts?: GetReplyOptions,
|
opts?: GetReplyOptions,
|
||||||
configOverride?: WarelayConfig,
|
configOverride?: WarelayConfig,
|
||||||
commandRunner: typeof runCommandWithTimeout = runCommandWithTimeout,
|
commandRunner: typeof runCommandWithTimeout = runCommandWithTimeout,
|
||||||
): Promise<ReplyPayload | undefined> {
|
): Promise<ReplyPayload | ReplyPayload[] | undefined> {
|
||||||
// Choose reply from config: static text or external command stdout.
|
// Choose reply from config: static text or external command stdout.
|
||||||
const cfg = configOverride ?? loadConfig();
|
const cfg = configOverride ?? loadConfig();
|
||||||
const reply = cfg.inbound?.reply;
|
const reply = cfg.inbound?.reply;
|
||||||
|
|||||||
Reference in New Issue
Block a user