Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyoshidajp/hi
Greeting before you starting, taking a lunch break, or finishing work.
https://github.com/kyoshidajp/hi
Last synced: about 2 months ago
JSON representation
Greeting before you starting, taking a lunch break, or finishing work.
- Host: GitHub
- URL: https://github.com/kyoshidajp/hi
- Owner: kyoshidajp
- License: mit
- Created: 2022-02-26T12:43:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-27T13:03:19.000Z (almost 3 years ago)
- Last Synced: 2023-04-06T16:45:52.653Z (almost 2 years ago)
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hi
Greeting before you starting, taking a lunch break, or finishing work.[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/kyoshidajp/hi/blob/main/LICENSE)
![hi](https://github.com/kyoshidajp/hi/workflows/hi/badge.svg)## Examples
```sh
# Before starting to work
% hi --time-slot morning
π’ γγ―γγγγγγΎγγ (09:10:28-18:10:28)# Before taking a lunch break
% hi --time-slot lunch
π± δΌζ©γγΎγγ (12:12:23-13:12:23)# Before finishing work
% hi --time-slot evening
β¨οΈ γη²γγγΎγ§γγγ
```## Post to Slack
`--post-to-slack` option enable you to post message to your Slack channel.
1. Create Slack Incoming WebHook in your workspace, and get the web hook url.
1. Create `.env` in a directory where you run `hi` command.
1. Run `hi` command without `--post-to-slack` for cheking the message.
1. If the message is good, then run the command with `--post-to-slack`.Sample of `.env`.
```sh
SLACK_WEB_HOOK_URL=https://hooks.slack.com/services/xxx
SLACK_CHANNEL=#channel-name
SLACK_USER_NAME=bot-kyoshida
SLACK_ICON_EMOJI=:bot-kyoshida:
```