slack-framework-rs
slack-framework-rs is the library that the author uses to create the Slack App.
Since it is for its own use, it currently provides only limited features, but it is strictly omitted from app-specific processing, so I think others can use it as well. However, there are some processes that have not been tested very well, so there may be things that do not work or do not represent. Issues and Merge Requests on GitLab are welcome.
Features
- OAuth.
- Slash Commands processing. (That includes Verifying requests from Slack, but not yet supported except in the case of Slash Commands.)
- A client that can request a few Slack APIs.
- Some representations of Blocks.
TODO (what I know)
- OAuth token rotation.
- More APIs.
- More representations of Blocks.
Example
use core as sc;
use server as ss;
use slack_api as ssa;
use types as st;
/// The structure for implementing handler traits.
;
async
Implementations of handlers
/// Implements a process of slash commands.
/// Implements a process of OAuth.
/// Implements to return the home page.
/// The home page should have an `Add to Slack` button.