/hi

Greeting before you starting, taking a lunch break, or finishing work.

Primary LanguageRustMIT LicenseMIT

hi

Greeting before you starting, taking a lunch break, or finishing work.

License: MIT hi

Examples

# 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.
  2. Create .env in a directory where you run hi command.
  3. Run hi command without --post-to-slack for cheking the message.
  4. 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: