GithubHelp home page GithubHelp logo

kdevo / op-dolphin-bot Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 3.0 27 KB

This Slack-Bot uses the "Incoming Webhook" to automagically post OpenProject Activities

License: GNU General Public License v3.0

Python 100.00%
openproject slack atom-feed python bot incoming-webhooks integration rss op-dolphin-bot webhook

op-dolphin-bot's Introduction

๐Ÿฌ OP-Dolphin-Bot

This simple Python-based Slack Bot uses Slack's Incoming WebHook to automagically post OpenProject Activities.

In other words: It makes it easy to get notifications about the latest updates in OP.

It is not a plugin for OpenProject. Instead, it relies on the external OpenProject resources (currently the Atom feed only).

Requirements:

  • a 24/7 running web-server or PC (a Raspberry Pi would do the job, too!)
  • Python 3.5/3.4 (tested) - may also work with >=3.0, but totally untested.
  • OpenProject - tested with the Community Edition
  • Slack with the Incoming WebHook Integration

Configuration:

  1. Edit the variables in starter.py. You'll need to configure SLACK_INCOMING_HOOK_URL, OP_BASE_URL, OP_PROJECT_ID and OP_RSS_KEY
  2. Start the python script (it needs to be always running if you do not want to get in an unsynchronized state)

Features

Q: Why not use the Slack RSS integration since OpenProject has an Atom feed?

A: There would be no dolphin! ๐Ÿ˜ฑ

Just kidding. The real reasons:

  • Configurable:
    • message format/look is configurable by changing dictionary constants in SlackMessageBuilder
    • if you want extremely fresh updates every 5 seconds, simply change the refresh_rate constructor parameter in DolphinBot!
  • Extensible:
    • maybe add OpenProject API support later? util/op_projects_list.py already contains an example on how to access the API
    • e.g. create more than one instance of the bot to watch multiple projects at one (by using threads)
  • Smart summary feature:
    • allows the bot to collect many updates
    • summarizes them in just one message to avoid "spamming" the slack channel
  • More intelligent interpretation of the information
  • Nicer look

References:

op-dolphin-bot's People

Contributors

kdevo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.