Giter VIP home page Giter VIP logo

slacker-cow's Introduction

Slacker Cow ๐Ÿฎ

Hubot instance for Khan Academy, Slack Edition.

Differences from Culture Cow

Culture Cow communicated via XMPP for Hubot, but used a custom HTTP adapter to send formatted messages (fancyMessage) back separately via the HipChat API.

The Slack Hubot adapter uses their realtime API, and should support formatting.

To make nicely formatted Slack messages, see the following:

Discussion of how to send attachments via hubot-slack:

Also, several things that were formerly in culture-cow are in separate repositories. For bovine culturey goodness, head over to Khan/culture-cron. For simian deploy magic, head over to Khan/khan-sun.

Making a deploy

Prerequisites

You will need a working gcloud tool and a Docker environment for deploying.

  • Set up the gcloud tool as per instructions. (Note that on Mac you can use brew cask install google-cloud-sdk instead of their installer, if you prefer.)
  • If you wish to use the shell adapter, get a working Docker environment setup:

Development

You can run hubot as a shell instance locally, without requiring an adapter.

To make things easy, a Docker Compose configuration is provided for running things locally. Simply do docker-compose run hubot and slacker-cow will be fired up in a local shell (compose will make sure a redis image is downloaded, activated, and linked to the hubot container if required).

Once loaded, you can interact with it as if you were in a Slack session:

$ docker-compose run --rm hubot
slacker-cow> [Mon Aug 31 2015 15:47:34 GMT+0000 (UTC)] INFO hubot-redis-brain: Discovered redis from REDIS_URL environment variable

slacker-cow> slacker-cow: ping
slacker-cow> PONG

The docker compose configuration automatically mounts the /hubot/bin and /hubot/scripts directories in the container as volumes, so that you can test code modifications without rebuilding the image.

Deploying

  • Run deploy.py.

slacker-cow's People

Contributors

benjaminjkraft avatar bpollack avatar mindlace avatar mroth avatar

Watchers

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