Readme update

This commit is contained in:
Abdulla Abdurakhmanov 2021-10-30 21:21:52 +02:00
parent 9c6fca3d2f
commit 3821bad91b
3 changed files with 4 additions and 2 deletions

View file

@ -4,5 +4,5 @@ members = [
"src/models",
"src/client",
"src/hyper",
"src/examples"
"src/examples",
]

View file

@ -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:

View file

@ -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(())