mirror of
https://github.com/System-End/slack-morphism-rust.git
synced 2026-04-19 19:45:13 +00:00
Readme update
This commit is contained in:
parent
9c6fca3d2f
commit
3821bad91b
3 changed files with 4 additions and 2 deletions
|
|
@ -4,5 +4,5 @@ members = [
|
|||
"src/models",
|
||||
"src/client",
|
||||
"src/hyper",
|
||||
"src/examples"
|
||||
"src/examples",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ 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://<your-host>:8080:
|
||||
|
|
|
|||
|
|
@ -295,8 +295,8 @@ pub fn config_env_var(name: &str) -> Result<String, String> {
|
|||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
init_log()?;
|
||||
//test_server().await?;
|
||||
|
||||
//test_server().await?;
|
||||
test_client_with_socket_mode().await?;
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue