Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sild/slack_cmd
https://github.com/sild/slack_cmd
slack slack-bot slackbot terminal
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sild/slack_cmd
- Owner: Sild
- Created: 2024-09-12T12:11:14.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T21:04:54.000Z (about 2 months ago)
- Last Synced: 2024-10-04T21:35:56.225Z (about 1 month ago)
- Topics: slack, slack-bot, slackbot, terminal
- Language: Rust
- Homepage: https://crates.io/crates/slack_cmd_core
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Slack CMD
Allows to turn slack chat into a command line interface.
## Usage
```rust
#[tokio::main]
async fn main() -> anyhow::Result<()> {
env_logger::init();
let oauth_token = env::var("SLACK_CMD_OAUTH_TOKEN")?;
let socket_token = env::var("SLACK_CMD_SOCKET_TOKEN")?;let jira_url = env::var("JIRA_URL")?;
let jira_user_email = env::var("JIRA_USER_EMAIL")?;
let jira_token = env::var("JIRA_TOKEN")?;let handlers = [
InfoHandler::make(),
JiraHandler::make(&jira_url, &jira_user_email, &jira_token, ALL_CHANNELS.iter().cloned()),
];slack_cmd_core::run(&oauth_token, &socket_token, handlers).await?;
Ok(())
}
```## Jira-handler
![img.png](resources/readme/help_example.png)
See [examples](src/examples) for more details.