https://github.com/8bittd/slack
Send a message to slack
https://github.com/8bittd/slack
rust slack
Last synced: about 1 month ago
JSON representation
Send a message to slack
- Host: GitHub
- URL: https://github.com/8bittd/slack
- Owner: 8bitTD
- Created: 2021-04-12T14:03:26.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T05:25:49.000Z (over 4 years ago)
- Last Synced: 2025-04-05T17:14:12.066Z (about 1 year ago)
- Topics: rust, slack
- Language: Rust
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slack
Send a message to slack
Works in windows10 environment
## Cargo.toml
```
[dependencies]
slack = { git = "https://github.com/8bitTD/slack", branch = "main" }
```
## main.rs
```
use slack;
fn main() {
let tkn: &str = "xxxx-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
let cnl: &str = "channel_name";
let usr: &str = "user_name";
let msg: &str = "test_send_message!";
slack::send_slack(tkn, cnl, usr, msg).unwrap();
}
```
