GithubHelp home page GithubHelp logo

netops-slackbot's Introduction

netops-slackbot

This code is loosely based on https://github.com/mattmakai/slack-starterbot and code the Mozilla Operations Center was already using to interact with PagerDuty.

To install:

  • copy config.yml.dist to config.yml
  • edit config.yml to suit. At a minimum you need:
    • your Slack API key
    • your PagerDuty API key
    • the schedule ID and escalation policy ID that you wish to grab the oncall from (you need both for it to be accurate)
  • virtualenv env
  • source env/bin/activate
  • pip install -r requirements.txt

netops-slackbot's People

Contributors

ctbfourone avatar dependabot[bot] avatar justdave avatar mozilla-github-standards avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

netops-slackbot's Issues

Wiki changes

FYI: The following changes were made to this repository's wiki:

These were made as the result of a recent automated defacement of publically writeable wikis.

Rewrite bot to use SlackClient 2.0.0

SlackClient 1.3.1 doesn't support proxy servers, need it to support that to run in the datacenter.

Alternatively: port the whole thing to Hubot. (hat tip to cshields)

Prefix character should be in the config file

I changed the bot earlier today to respond to "!oncall" instead of needing to address the bot by name when giving it a command. The ! prefix character is in a variable, but it's currently defined at the top of the file. It should get it out of the config instead. Then I can have the staging version of the bot use a different prefix and not have both copies answer when someone gives it a command.

Default channel should be in the config file

Right now, the channel to join is defined near the top of the code. This ought to be in the config file, so you don't have to worry about changing it back before you commit if you had it changed for testing.

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

Poll PagerDuty periodically to get oncall changes

right now the bot grabs the oncall from PagerDuty when it starts (just to make sure it was working).
It needs to do it on a timer and check periodically, then announce it on #netops when it changes.

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.