Giter Site home page Giter Site logo

slack-break-bot's Introduction

Slack-Break-Bot

A slack bot to manage shift breaks for hourly employees.

Getting Started

The following instructions will explain how to use the Slack bot.

Installing Dependencies

Assure you have the following modules installed to assure a working slack bot:

Python 3.6
flask
slackclient 2.0
datetime
apscheduler
pytz

Starting the bot

In the bot.py file, you can find the channel ID that it will post updates to as well as notification intervals that you can set. Also make sure to set your environment variable in the environment file with your Bot User OAuth Access Token. Then, to finish up, add a Slash Command in your Slack App page and set the request URL.

clear;python3 bot.py && . /environment

Docker

I also included the Dockerfile setup so that if you want you can move it to a Kubernetes platform or similar. If you plan to just use docker, the JSON file is already mounted for you. However, if you move to a Kubernetes platform, you must ensure you account for persistance with the JSON file. I am planning to move to Google Datastore for v2.

clear;python3 run_docker.py

Slack

Be sure to also set-up the app in the Slack API page (https://api.slack.com/apps) and setup the "slash commands" to use REST on this web server.

slack-break-bot's People

Contributors

arthurjdileo avatar

Watchers

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