Skip to content

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

License

Notifications You must be signed in to change notification settings

NNA/hubot-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Scripts

Spin me

Format:

spin me <query> - Returns a spun version of the input.

Input:

@yourbot spin me {Hi there|Greetings|Hi|Hello|Hello There}{!|,}

I {really|simply|totally} {love|respect|admire} your {blog|article|post|opinion} and {will tell all my friends about it|will be back again tomorrow|also the design of your website}.

{Thanks|Thank you|Cheers|Bye for now}!

Output:

Greetings!

I simply admire your blog and also the design of your website.

Cheers!

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 99.9%
  • Shell 0.1%