The Slack Connector for Lightyear
import { Slack } from '@runlightyear/slack';
const slackAuth = Slack.defineAuth({ name: 'slack' })
defineAction({
name: 'helloSlack',
auths: {
slack: slackAuth,
},
run: async ({ auths }) => {
const slack = new Slack({ auth: auths.slack });
await slack.postMessage({ channel: '#general', text: 'Hello Slack'})
}
})