Crates.io | orangino |
lib.rs | orangino |
version | 0.1.1 |
source | src |
created_at | 2020-06-11 23:13:09.745464 |
updated_at | 2020-06-12 02:59:24.951991 |
description | A Tangerino plugin for Slack to punch in and out from your CLI, while letting your team know right away. |
homepage | https://github.com/marcelovicentegc/orangino |
repository | https://github.com/marcelovicentegc/orangino |
max_upload_size | |
id | 253047 |
size | 229,298 |
An amazing Tangerino plugin for Slack to punch in and out from your CLI, while automatically letting your team know if you're available or not.
Orangino uses the Reqwest crate to interact with the Tangerino API, while binding with Python to benefit from the official Slack client to publish messages to the channel of your choice.
# Cargo
cargo install orangino
Orangino has a configuration file that allows you to change default behaviour.
The file must be named .orangino.toml
. Currently, Orangino looks for
this file in your home directory (/home/marcelo
on Linux, /Users/Marcelo
on macOs, C:\Users\Alice
on Windows)
To have Tangerino punch your card, you just need to call it:
$ orangino
You will need:
chat:write
incoming-webhook
pins:read
pins:write
.orangino.toml
file with your credentials, following the .orangino.example.toml
model on your home path:employer_code = "12345"
pin = "9876"
tangerino_basic_token = "Basic xeAxZyEwTOsPZKdlIA=="
slack_channel = "#random"
slack_api_token = "xoxp-22f3f6aa-1a75-452c-b023-5365db9409ae"
greetings_message = "Hello world!"
goodbye_message = "Goodbye world!"
pip install -r requirements.txt && cargo build
You are good to go now, make changes to the app and run it: cargo run