Giter Site home page Giter Site logo

hubot's Introduction

Meet Ada

This is a version of GitHub's kegerator-powered life embetterment robot, hubot, that we use internally at Rendered Text.

Ada is geek and she lives on Heroku.

She loves to chat on our Slack chatroom, poke us while we're working, and that stuff, you know women (joke ๐Ÿ˜ƒ).

TL;DR She's pretty cool.

Environment variables

To run this version of hubot + scripts that we use, you will need to set some environment variables.

=== rt-hubot Config Vars
HEROKU_URL

FOURSQUARE_CLIENT_ID
FOURSQUARE_CLIENT_SECRET

HUBOT_SLACK_TOKEN
HUBOT_SLACK_TEAM
HUBOT_SLACK_BOTNAME

REDIS_URL
HUBOT_SEMAPHOREAPP_AUTH_TOKEN
HUBOT_SEMAPHOREAPP_TRIGGER
HUBOT_GOOGLE_CSE_ID
HUBOT_GOOGLE_CSE_KEY

Testing Hubot Locally

You can test your hubot by running the following.

% bin/hubot

You'll see some start up output about where your scripts come from and a prompt.

[Sun, 04 Dec 2011 18:41:11 GMT] INFO Loading adapter shell
[Sun, 04 Dec 2011 18:41:11 GMT] INFO Loading scripts from /home/tomb/Development/hubot/scripts
[Sun, 04 Dec 2011 18:41:11 GMT] INFO Loading scripts from /home/tomb/Development/hubot/src/scripts
Hubot>

Then you can interact with hubot by typing hubot help.

Hubot> hubot help

Hubot> animate me <query> - The same thing as `image me`, except adds a few
convert me <expression> to <units> - Convert expression to given units.
help - Displays all of the help commands that Hubot knows about.
...

Take a look at the scripts in the ./scripts folder for examples. Delete any scripts you think are silly. Add whatever functionality you want hubot to have.

hubot-scripts

There will inevitably be functionality that everyone will want. Instead of adding it to hubot itself, you can submit pull requests to hubot-scripts.

To enable scripts from the hubot-scripts package, add the script name with extension as a double quoted string to the hubot-scripts.json file in this repo.

Deployment

If you would like to deploy to either a UNIX operating system or Windows. Please check out the deploying hubot onto UNIX and deploying hubot onto Windows wiki pages.

Deploy to Kubernetes

You can use our manifest files in root directory to deploy Ada on your Kubernetes cluster:

  • Use minikube.yml if you want to try it out on your local minikube cluster.

  • We use deploy.yml to deploy Ada on GKE.

Restart the bot

You may want to get comfortable with heroku logs and heroku restart if you're having issues.

hubot's People

Contributors

fanna avatar markoa avatar nikolalsvk avatar rastasheep avatar shiroyasha avatar

Stargazers

 avatar  avatar

Watchers

 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.