A modern async client library for Rust, supports Slack Web / Events API/Socket Mode and Block Kit.
Find a file
Abdulla Abdurakhmanov 3821bad91b Readme update
2021-10-30 21:21:52 +02:00
.github/workflows Update actions/checkout action to v2 2021-08-30 20:03:04 +00:00
docs Reconnection support 2021-10-30 21:11:26 +02:00
src Readme update 2021-10-30 21:21:52 +02:00
.gitignore vim dir to gitignore 2020-10-17 15:12:59 +02:00
Cargo.toml Readme update 2021-10-30 21:21:52 +02:00
CNAME gh-pages workflow fix 2020-08-22 18:40:30 +03:00
LICENSE Docs/Cargo update 2020-08-09 16:12:47 +03:00
README.md Readme update 2021-10-30 21:21:52 +02:00
renovate.json Add renovate.json 2020-08-22 15:57:31 +00:00

Cargo tests and formatting

Slack Morphism for Rust

Slack Morphism is a modern client library for Slack Web/Events API/Sockets Mode and Block Kit.

Documentation

Please follow to the official website: https://slack-rust.abdolence.dev

Examples

https://github.com/abdolence/slack-morphism-rust/tree/master/src/examples/src

The example bot requires to work the following environment variables (from your Slack bot profile in api.slack.com):

  • SLACK_CLIENT_ID, SLACK_CLIENT_SECRET, SLACK_BOT_SCOPE, SLACK_REDIRECT_HOST - for OAuth
  • SLACK_TEST_TOKEN - for Slack client example
  • SLACK_TEST_APP_TOKEN - for Slack client with Socket Mode example
  • SLACK_SIGNING_SECRET for all routes

Routes for this example are available on http://:8080:

  • /auth/install - to begin OAuth installation
  • /auth/callback - a callback endpoint for Slack OAuth profile config
  • /push - for Slack Push Events
  • /interaction - for Slack Interaction Events
  • /command - for Slack Command Events

Licence

Apache Software License (ASL)

Author

Abdulla Abdurakhmanov