@bigidea/slack
v0.1.2
Published
The Slack Connector for Big Idea Integration
Downloads
11
Readme
Slack Connector
The Slack Connector for Big Idea Integration
Examples
Import
import { Slack } from '@bigidea/slack';
Create an auth
const slackAuth = Slack.defineAuth({ name: 'slack' })
Use in a task
defineTask({
name: 'helloSlack',
auths: {
slack: slackAuth,
},
run: async ({ auths }) => {
const slack = new Slack({ auth: auths.slack });
await slack.postMessage({ channel: '#general', text: 'Hello Slack'})
}
})