Skip to content
jollyroger182Public

About

A fully-typed, opinionated Slack API library

Resources

Stars

16 stars

Watchers

0 watching

Forks

Repository files navigation

slack.ts

Ergonomic TypeScript Slack client library.

Installation

$ bun add slack.ts
$ npm add slack.ts
$ pnpm add slack.ts

Usage

import { Client, FetchReceiver } from "slack.ts";

const receiver = new FetchReceiver({
	signingSecret: process.env.SLACK_SIGNING_SECRET!,
});

const client = new Client(process.env.SLACK_TOKEN!, { receiver });

client.on("event:message", async (event) => {
	if (event.subtype) return;
	console.log(event.channel, event.ts, event.user, event.text);
});

Documentation

Coming soon!

About

A fully-typed, opinionated Slack API library

Resources

Stars

16 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages