Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 531 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 531 Bytes

@promise-watch/slack

Installation

pnpm add @promise-watch/slack

Usage

new SlackNotifier(process.env.SLACK_WEBHOOK_URL);

Extended Configuration

import { SlackNotifier } from "@promise-watch/slack";
import type { IncomingWebhookSendArguments } from "@slack/webhook";

const slackOptions: IncomingWebhookSendArguments = {
  channel: "#general",
  username: "Promise Watch",
  icon_emoji: ":ghost:",
};

new SlackNotifier(process.env.SLACK_WEBHOOK_URL, slackOptions);