Skip to content

Instantly share code, notes, and snippets.

@kaneoriley
Forked from coderofsalvation/hubottest
Created July 9, 2017 06:34
Show Gist options
  • Save kaneoriley/5a7ebd2304dd4fc58fec553c6c7b43b4 to your computer and use it in GitHub Desktop.
Save kaneoriley/5a7ebd2304dd4fc58fec553c6c7b43b4 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment