
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@wemaintain/slack
Advanced tools
Slack module for Nest
npm install --save @wemaintain/slack @slack/web-api @slack/events-api
@Module({
imports: [
SlackModule
],
controllers: [],
providers: [],
})
export class AppModule {}
Configuration of the module can be acheived by using the forRoot
and forRootAsync
method
@Module({
imports: [
SlackModule.forRoot({
signingSecret: process.env.SLACK_SIGNING_SECRET
})
],
controllers: [],
providers: [],
})
export class AppModule {}
@Module({
imports: [
ConfigModule,
SlackModule.forRootAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: (option) => option.slack
})
],
controllers: [],
providers: [],
})
export class AppModule {}
The SlackClient is a wrapper the WebClient
Slack API
Inject it inside your component like any other Provider:
constructor(
protected readonly slackService: SlackClient,
){}
The SlackEventService is a service that listen for the Event
Slack API
If the signingSecret
is provided to the SlackModule it will look for @SlackEvent decorator in your controllers
And bind them to the webhook listener
@Controller()
export class AppController {
@SlackEvent('message')
onMessageInChannel(): void {
// Do thing
}
}
FAQs
Nest module for slack bots
We found that @wemaintain/slack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.