Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Last active July 9, 2017 06:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save coderofsalvation/9907f752e827de15559d to your computer and use it in GitHub Desktop.
Save coderofsalvation/9907f752e827de15559d to your computer and use it in GitHub Desktop.
commandline wrapper script to invoke hubot commands from the commandline (handy for testing while developing) using expect
#!/usr/bin/expect -f
# usage: ./hubottest "hubot help"
spawn bin/hubot.coffee
sleep 3
expect "Hubot>"
send "hubot [lrange $argv 0 10]\n"
expect eof
@ericdorsey
Copy link

This is fantastic for anyone playing w/ Hubot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment