@runlightyear/slack
v0.18.15
Published
The Slack Connector for Lightyear
Downloads
504
Readme
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'})
}
})