import { WebClient } from "https://deno.land/x/slack_web_api@1.0.0/mod.ts";
type Slack = {
token: string;
};
export async function main(text: string, channel: string, slack: Slack) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by admin 466 days ago
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.0/mod.ts";
type Slack = {
token: string;
};
export async function main(
text: string,
channel: string,
slack: Slack,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by admin 469 days ago
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.0/mod.ts";
import type { Resource } from "https://deno.land/x/windmill@v1.85.0/mod.ts";
export async function main(
text: string,
channel: string,
slack: Resource<"slack">,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by adam186 597 days ago
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.0/mod.ts";
import type { Resource } from "https://deno.land/x/windmill@v1.70.1/mod.ts";
export async function main(
text: string,
channel: string,
slack: Resource<"slack">,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by adam186 632 days ago
import { WebClient } from "https://deno.land/x/slack_web_api@1.0.0/mod.ts";
import type { Resource } from "https://deno.land/x/windmill@v1.24.1/mod.ts";
export async function main(
text: string,
channel: string,
slack: Resource<"slack">,
) {
const web = new WebClient(slack.token);
await web.chat.postMessage({
channel,
text,
});
}
Submitted by admin 847 days ago