Giter VIP home page Giter VIP logo

github-slack-bot's Introduction

Slack Bot for Github

Runtime Environment

Variables Description Required More Information
GITHUB_TOKEN github webhook token โœ… https://developer.github.com/webhooks/
GITHUB_WEBHOOK_PORT github webhook port https://developer.github.com/webhooks/
SLACK_BOT_TOKEN bot token from slack.com https://api.slack.com/bot-users / https://my.slack.com/services/new/bot
SLACK_BOT_PORT botkit persistence path https://github.com/howdyai/botkit#storing-information
SLACK_BOT_DEBUG enable botkit debug output true / false
SLACK_BOT_STORAGE botkit persistence path https://github.com/howdyai/botkit#storing-information

Develop

install dependencies

npm install

lint and format

npm run lint

run locally

npm start

Dockerfile

with docker-compose

docker-compose build
docker-compose up

with shell commands

docker build -t github-slack-bot .
docker run -d \
           -p 3000:3000 \
           -p 3420:3420 \
           --env GITHUB_TOKEN=$GITHUB_TOKEN \
           --env SLACK_BOT_TOKEN=$SLACK_BOT_TOKEN \
           --env SLACK_BOT_DEBUG=$SLACK_BOT_DEBUG \
           --env SLACK_BOT_STORAGE=/storage \
           -v $SLACK_BOT_STORAGE:/storage \
           --name github-slack-bot \
           github-slack-bot
docker logs -f github-slack-bot

Tunneling

If you're running locally, use one of these utilities to expose a port on your local machine.

ngrok

ngrok 3420

localtunnel

lt --port 3420

github-slack-bot's People

Contributors

jfairley avatar

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.