Git Product home page Git Product logo

another-ingress-hubot's Introduction

Hubot for Ingress

This is a clone of a Hubot installed on Slack. Feel free to fork/clone for your own group's usage. We run ours on a https://github.com/progrium/dokku instance.

Setup

Slack Integration

  1. Log into your Slack instance.
  2. Go to the integrations page (in the web interface, click the team name for admin things and choose integrations).
  3. Scrolling through the list, find Hubot. Add that one.
  4. Selet a username for your bot. Ours has gone through several name changes (hubot, xm-bot, groot). You must also give the robot a "full name". You can also set an avatar.
  5. At the end, you'll get an API token. You'll need it for later.

Things to note for later:

B. The API token

Hubot Codebase

  1. Clone this repo to your local machine: git clone [email protected]:impleri/another-ingress-hubot.git
  2. Deploy it to your server (depends on setup)
  3. Configure the necessary environment variables:
    • HEROKU_URL=https://[app-name].[domain-name.com]
    • HUBOT_CYCLE_TZ_NAME (from hubot-ingress). America/Chicago is US/Central.
    • HUBOT_SLACK_TOKEN (token from above)
    • HUBOT_SLACK_INVITE_TOKEN (from hubot-invite-slack)
    • HUBOT_YOUTUBE_API_KEY (from hubot-youtube)
    • HUBOT_AUTH_ADMIN (from hubot-auth*)
    • REDIS_URL (from hubot-redis-brain)
  4. Restart your robot for good measure: heroku ps:restart
  • This is a comma-separated list of user ids that get robot taming powers. To get the user ids for HUBOT_AUTH_ADMIN, go to https://api.slack.com/methods/users.list/test (you may need to generate an API token for your account) and get the list of users. Search for a user by username and get the "id" field about the username.

Test in Slack

  1. Invite your tame robot to a chat room. It should join automatically.
  2. Ping your robot: [hubot-name] doge me. It should repond with a Doge meme.
  3. Check the cycle times are correct: [hubot-name] cp. This should provide the next septicycle checkpoint time localized to your timezone. If it isn't correct, ensure the timezone is correct: [hubot-name] cycle offset.
  4. Ensure meme generation works: [hubot-name] need help why not zoidberg? should generate a Zoidberg meme.

another-ingress-hubot's People

Contributors

impleri avatar

Watchers

 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.