https://github.com/averagemarcus/commitemotion
Adds your current emotion to git commits
https://github.com/averagemarcus/commitemotion
Last synced: about 1 year ago
JSON representation
Adds your current emotion to git commits
- Host: GitHub
- URL: https://github.com/averagemarcus/commitemotion
- Owner: AverageMarcus
- Created: 2016-10-22T17:14:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-22T18:37:22.000Z (over 9 years ago)
- Last Synced: 2025-02-12T11:24:30.343Z (over 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CommitEmotion
Record your current emotion along with your git commit.
## How it works
Takes a photo using your webcam and then sends the image to [Microsoft Cognitive Services](https://www.microsoft.com/cognitive-services/en-us/emotion-api) for emotional analysis. It then prepends the commit message with the appropriate emoji.
## How To Use
### Requirements
*Linux* - Install `fswebcam` via your distributions package manager (apt-get, yum, etc.)
*Mac OS* - `brew install imagesnap`
1. `npm install`
2. Create a `.env` file that includes `MS_KEY={your MS Cognitive Services API key}`
## Adding to a git repository
1. `ln -s {full path to app.js} {full path to project directory}/.git/hooks/commit-msg`