Git Product home page Git Product logo

slackoverflow's Introduction

SlackOverflow

Web hook that posts tagged Stack Overflow questions to Slack, updated using reaction emojis.

GitHub license Build Status

Install

git clone https://github.com/aframevr/slackoverflow.git $GOPATH/src/github.com/aframevr/slackoverflow
cd $GOPATH/src/github.com/aframevr/slackoverflow
make dependencies
make install

Configuration

You can simply execute following command to start interactive configuration
All slackoverflow configuartion files including SQLite database are stored at $HOME/.slackoverflow/

slackoverflow init

You can check or manually edit generated configuration file.

slackoverflow config
cat ~/.slackoverflow/slackoverflow.yaml

Run it once

Best way to test it is to use run command.

slackoverflow run

Available commands

See slackoverflow --help for more info
See slackoverflow --help for more info about specific command

Usage:
  slackoverflow [OPTIONS] <command>

Application Options:
  -v, --verbose  Be more verbose, This enable loglevel Info
  -d, --debug    Be even more verbose, This enables loglevel Debug
Help Options:
  -h, --help     Show help message

config

Display SlackOverflow configuration.

credits

List of SlackOverflow contributors.

reconfigure

Interactive configuration of stackoverflow (aliases: init)

run

Run SlackOverflow once.

flags
--keep-alive Keep on rumning every minute

service --help

SlackOverflow daemon All service comands require super user (sudo, root) privileges
To install and use SlackOverflow as a service you have to also
copy binary to bin path and configure SlackOverflow as super user.

e.g

make && make install
sudo cp $GOPATH/bin/slackoverflow /usr/bin/
sudo slackoverflow reconfigure
sudo slackoverflow install
sudo slackoverflow start

service install

Install SlackOverflow service.

service remove

Remove SlackOverflow service

service restart

Restart SlackOverflow service.

service start

Start SlackOverflow service.

service status

Get SlackOverflow service status.

service stop

Stop SlackOverflow service.

slack --help

Slack related commands see slackoverflow slack --help for more info.

slack channels

This method returns a list of all Slack channels in the team.

slack questions

Post new or update tracked Stack Exchange questions on Slack channel.

flags
--post-new Post new questions origin from configured Stack Exchange Site
--update Update information about questions already posted to slack
--all Get new questions and update information about existing questions

stackexchange --help

Stack Exchange related commands see slackoverflow stackexchange --help for more info.

stackexchange questions

Work with stackexchange questions based on the config

flags
--get Get new questions from configured Stack Exchange Site
--update Update information about existing questions
--sync Get new questions and update information about existing questions

stackexchange watch

Watch new questions from Stack Exchange site
(updated every minute nothing stored to db or posted to slack)

validate

Validate stackoverflow configuration

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.