Nest.js + Slack Incoming Webhook
npm install nestjs-slack-webhook
@Module({
imports: [
SlackModule.forRoot({
url: "SLACK_WEBHOOK_URL", // ref: https://api.slack.com/messaging/webhooks#posting_with_webhooks
}),
],
})
export class AppModule {}
Inject IncomingWebhook instance
@Injectable()
export class AppService {
constructor(
@InjectSlack() private readonly slack: IncomingWebhook,
) {}
}
PRs accepted.
MIT © g59