Last active
July 9, 2017 06:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
This is fantastic for anyone playing w/ Hubot