@runlightyear/slack
TypeScript icon, indicating that this package has built-in type declarations

0.18.15 • Public • Published

Slack Connector

The Slack Connector for Lightyear

Examples

Import

import { Slack } from '@runlightyear/slack';

Create an auth

const slackAuth = Slack.defineAuth({ name: 'slack' })

Use in an action

defineAction({
  name: 'helloSlack',
  auths: {
    slack: slackAuth,
  },
  run: async ({ auths }) => {
    const slack = new Slack({ auth: auths.slack });
    await slack.postMessage({ channel: '#general', text: 'Hello Slack'})
  }
})

Readme

Keywords

none

Package Sidebar

Install

npm i @runlightyear/slack

Weekly Downloads

141

Version

0.18.15

License

none

Unpacked Size

314 kB

Total Files

91

Last publish

Collaborators

  • ericbigidea