import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeUrls(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by hugo697 185 days ago
import { getResumeUrls } from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeUrls(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by admin 788 days ago
import { getResumeEndpoints } from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = "A flow is requesting an approval to be resumed",
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`);
await web.chat.postMessage({
channel,
text: text + " <" + approvalPage + "|approval page>",
});
}
Submitted by admin 817 days ago
import {
getResumeEndpoints
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
type Slack = {
token: string;
};
export async function main(
slack: Slack,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by admin 821 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by adam186 949 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by adam186 984 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' <' + approvalPage + '|approval page>'
});
}
Submitted by admin 1033 days ago
import {
getResumeEndpoints,
Resource,
} from "https://deno.land/x/[email protected]/mod.ts";
import { WebClient } from "https://deno.land/x/[email protected]/mod.ts";
export async function main(
slack: Resource<"slack">,
channel: string,
text = 'A flow is requesting an approval to be resumed'
) {
const web = new WebClient(slack.token);
const { approvalPage } = await getResumeEndpoints(`channel-${channel}`)
await web.chat.postMessage({
channel,
text: text + ' ' + approvalPage
});
}
Submitted by admin 1033 days ago