Greeting before you starting, taking a lunch break, or finishing work.
# 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
option enable you to post message to your Slack channel.
- Create Slack Incoming WebHook in your workspace, and get the web hook url.
- Create
.env
in a directory where you runhi
command. - Run
hi
command without--post-to-slack
for cheking the message. - If the message is good, then run the command with
--post-to-slack
.
Sample of .env
.
SLACK_WEB_HOOK_URL=https://hooks.slack.com/services/xxx
SLACK_CHANNEL=#channel-name
SLACK_USER_NAME=bot-kyoshida
SLACK_ICON_EMOJI=:bot-kyoshida: