https://github.com/guyfedwards/emojo
Automatically resize emoji and upload from slack
https://github.com/guyfedwards/emojo
Last synced: about 1 month ago
JSON representation
Automatically resize emoji and upload from slack
- Host: GitHub
- URL: https://github.com/guyfedwards/emojo
- Owner: guyfedwards
- Created: 2018-11-01T19:03:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-06-27T16:54:25.000Z (almost 5 years ago)
- Last Synced: 2024-05-17T00:25:54.508Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 23.8 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Emojo
Lambda function to be used as a slack app to add uploaded emoji to github repo to then be deployed to slack through CI.
### Config
All config is done through environment variables. These can be set in a `.env` file in the root of the project. See `.env.example`
#### `GITHUB_REPO`
Name of the repo you wish to save your emoji too
#### `GITHUB_REPO_DIR`
A sub-directory in the repo where the images themselves will be added.
#### `GITHUB_REPO_BRANCH`
Custom branch to commit the uploaded emoji to
### Deploy
Emojo is built using `serverless` so you can deploy with:
```
$ yarn deploy
```
### Development
You can start a local serverless server with
```
$ yarn dev
```
Then tunnel to localhost with ngrok:
```
$ ngrok http localhost:5020
```
This will give you a url you can use as the hook in Slack for the app.