For sending messages to Slack.
This Slack plugin has two actions:
- Send message to Slack channel.
- Send message to Slack channel with attachment.
Before you can use the Slack Plugin, you need to:
- Create a Slack-app that will post the messages. A
@Valtimo messenger- This app must have premissions
chat:writeandfiles:write
- This app must have premissions
- Add the
@Valtimo messengerto the channel.
The following Gradle dependency can be added to your build.gradle file:
dependencies {
implementation("com.ritense.valtimoplugins:slack:6.0.0")
}The most recent version can be found here.
The following dependency can be added to your package.json file:
{
"dependencies": {
"@valtimo-plugins/slack": "6.0.0"
}
}The most recent version can be found here.
In order to use the plugin in the frontend, the following must be added to your app.module.ts:
import {
SlackPluginModule, slackPluginSpecification
} from '@valtimo-plugins/slack';
@NgModule({
imports: [
SlackPluginModule,
],
providers: [
{
provide: PLUGIN_TOKEN,
useValue: [
slackPluginSpecification,
]
}
]
})