mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 15:01:40 +00:00
Slack: add some fixes and connect it all up
This commit is contained in:
@@ -66,10 +66,8 @@ export async function handleSlackAction(
|
||||
const to = readStringParam(params, "to", { required: true });
|
||||
const content = readStringParam(params, "content", { required: true });
|
||||
const mediaUrl = readStringParam(params, "mediaUrl");
|
||||
const replyTo = readStringParam(params, "replyTo");
|
||||
const result = await sendSlackMessage(to, content, {
|
||||
mediaUrl: mediaUrl ?? undefined,
|
||||
replyTo: replyTo ?? undefined,
|
||||
});
|
||||
return jsonResult({ ok: true, result });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user