Coder Social home page Coder Social logo

fanatic / stack2slack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dunglas/stack2slack

0.0 1.0 0.0 20 KB

A Slack bot to monitor StackOverflow/StackExchange tags

Home Page: https://dunglas.fr/2017/10/stack2slack-a-slack-bot-written-in-go-to-monitor-stackoverflow-tags/

License: MIT License

Dockerfile 1.92% Smarty 12.73% Go 85.34%

stack2slack's Introduction

Stack to Slack

This Slack bot monitors StackExchange tags and automatically publishes new questions in configured Slack channels.

It has been initially created to post all questions related to the API Platform framework in a dedicated channel of the Slack of Les-Tilleuls.coop (the company behind the framework).

Go Report Card Build Status Docker Automated build

Installing

  1. Register a new Slack bot and grab the generated API token
  2. Download and extract the binary corresponding to your platform
  3. Start the daemon: DEBUG=1 SLACK_API_TOKEN=<your-API-token> TAG_TO_CHANNEL='{"stackoverflow-tag": "slack-channel"}' ./stack2slack
  4. Finally, invite the bot in channels it will post: /invite @bot-name

Alternatively, you can use the official Docker image instead of downloading a binary: docker run -e DEBUG=1 -e SLACK_API_TOKEN=<your-API-token> -e TAG_TO_CHANNEL='{"stackoverflow-tag": "slack-channel"}' dunglas/stack2slack

If you use a Kubernetes (e.g. a Google Container Engine cluster), you can install Stack 2 Slack very easily with the Helm package manager:

  1. Clone this repository: git clone [email protected]:dunglas/stack2slack.git

  2. Install the provided chart:

    helm install
    --set slackApiToken=
    --set tagToChannel.stackExchangeTag=slackChannel
    ./chart/stack2slack

Building from Sources

This bot is written in Go (golang), you need a proper install of it to compile the sources.

  1. Clone this repository: git clone https://github.com/dunglas/stack2slack.git
  2. Get the dependencies go get
  3. Compile the app: go build

Credits

Written by Kévin Dunglas. Sponsored by Les-Tilleuls.coop.

stack2slack's People

Contributors

dunglas avatar

Watchers

James Cloos 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.