https://github.com/clavoie/discord-pusher
A small Go web app that pushes build notifications to Discord
https://github.com/clavoie/discord-pusher
Last synced: 2 months ago
JSON representation
A small Go web app that pushes build notifications to Discord
- Host: GitHub
- URL: https://github.com/clavoie/discord-pusher
- Owner: clavoie
- License: mit
- Created: 2017-07-20T15:48:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-21T22:11:31.000Z (almost 8 years ago)
- Last Synced: 2025-04-12T00:49:43.010Z (2 months ago)
- Language: CSS
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# discord-pusher
A small Go web app that pushes build notifications to [Discord](https://discordapp.com/) for [BitBucket](https://bitbucket.org/) and [Unity](https://unity3d.com/).

## Usage
- deploy the application to wherever you would like it to run. currently only Google App Engine is supported but it can be extended to other hosting environments via the [discord-pusher-deps](https://github.com/clavoie/discord-pusher-deps) package
- open `http://yourhost.com/` in your browser where the application is deployed
- generate a new webhook link in Discord
- copy the link and paste it into the Discord Web Url form field of the application
- select the type of notifications you'd like to recieve and click Add
- a webhook link will be generated for you. copy that link and paste it into either Bitbucket or Unity## Google Cloud App Engine Deployment
`gcloud app deploy app.yaml`## Extending
To support other hosting environments, clone [discord-pusher-deps](https://github.com/clavoie/discord-pusher-deps), implement `github.com/clavoie/discord-pusher-deps/types/HookContext`, and add it back to discord-pusher-deps.Go to `github.com/clavoie/discord-pusher/init.go` and update `pusherTypes` with your implementation. You can then start up the server with your implementation by either:
- setting the environment variable `DISCORD_PUSHER_TYPE=your_type`
- providing your pusher type to the application as a command line argument## Why is HookContext in a separate repository
Go App Engine sadness