All Projects → HabitRPG → Habitica-Webhooks

HabitRPG / Habitica-Webhooks

Licence: other
A server to receive webhooks for Habitica related projects (github, slack, etc)

Programming Languages

javascript
184084 projects - #8 most used programming language

Habitica-Webhooks

This app is designed to recieve webhooks from various sources and process that data.

Right now it only recieves webhooks from Github and uploads changes to sprites to S3.

Github Setup

Go to the settings of the habitica repo and add a new webhook for the push event. Add http://urlwhereappisdeployed.com/github/repo and include a secret string (Make note of this).

You will need to supply a few environmental variables, whether through a config.json file or passed in on the command line.

env variable description
GITHUB_SECRET the secret string supplied when setting up the webhook
GITHUB_BRANCH_TO_WATCH the branch where changes should be inspected; Defaults to develop
S3_SPRITES_DIRECTORY the directory in the bucket where the sprites should be uploaded to
S3_BUCKET_NAME The s3 bucket that you upload to
S3_REGION the region where the bucket resides
S3_ACCESS_KEY the public key for s3
S3_SECRET_KEY the secret key for s3
SLACK_URL incoming webhook url for slack

Tests

npm test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].