Skip to content

Latest commit

 

History

History
68 lines (49 loc) · 1.43 KB

File metadata and controls

68 lines (49 loc) · 1.43 KB

Slack plugin

For sending messages to Slack.

Capabilities

This Slack plugin has two actions:

  1. Send message to Slack channel.
  2. Send message to Slack channel with attachment.

Requirements

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:write and files:write
  • Add the @Valtimo messenger to the channel.

Dependencies

Backend

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.

Frontend

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,
            ]
        }
    ]
})