Giter VIP home page Giter VIP logo

discord-pusher's Introduction

discord-pusher

A small Go web app that pushes build notifications to Discord for BitBucket and Unity.

discord-pusher-ui

discord-build-image

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 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, 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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.