Giter Site home page Giter Site logo

travisjeffery / hubot-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from github/hubot-scripts

1.0 3.0 0.0 880 KB

optional scripts for hubot, opt in via hubot-scripts.json

License: MIT License

CoffeeScript 99.88% Shell 0.03% JavaScript 0.09%

hubot-scripts's Introduction

hubot-scripts

These are a collection of community scripts for Hubot, a chat bot for your company.

Installing

Once you have Hubot installed, you can drop new scripts from this repository right into your generated Hubot installation. Just put them in scripts, add the new scripts to the hubot-scripts.json file.

Any third-party dependencies for scripts need adding your your package.json otherwise a lot of errors will be thrown during the start up of your hubot.

Restart your robot, and you're good to go.

All the scripts in this repository are located in src/scripts.

Writing

Want to write your own Hubot script? The best way is to take a look at an existing script and see how things are set up. Hubot scripts are written in CoffeeScript, a higher-level implementation of JavaScript.

You'll also want to add tests for your script; no one likes untested code. It makes Hubot sad.

Additionally, it's extremely helpful to add TomDoc to the top of each file. (Check out an example). We'll pull out the commands from those lines and display them in the generic, robot-wide hubot help command.

Please note we're no longer including external dependencies in the package.json, so should you wish to include them please include the package name and required version in the TomDoc comments at the top of your script.

Discovering

The Script Catalog

hubot-scripts's People

Contributors

ajacksified avatar alexwhitman avatar amaltson avatar atmos avatar aupajo avatar brianmichel avatar dlinsin avatar dvdsgl avatar elliotttf avatar enriquevidal avatar gregmac avatar holman avatar iangreenleaf avatar jimeh avatar joshrieken avatar kuikui avatar lackac avatar lukesmith avatar maddox avatar markomanninen avatar markpasc avatar mrtazz avatar nparry avatar plytro avatar rrix avatar skalnik avatar sleekslush avatar technicalpickles avatar tombell avatar vquaiato avatar

Stargazers

 avatar

Watchers

 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.