Skip to content

Instantly share code, notes, and snippets.

@brodul
Created September 1, 2015 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brodul/1ebaebd6211860f508e2 to your computer and use it in GitHub Desktop.
Save brodul/1ebaebd6211860f508e2 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
npm install
export PATH="node_modules/.bin:node_modules/hubot/node_modules/.bin:$PATH"
# how to parse an ini file in bash :D
python3 - <<END
import configparser
import os
config = configparser.ConfigParser()
config.read('hubot.ini')
( os.environment[k]=v for k, v in config["environment"].iteritems() )
END
exec node_modules/.bin/hubot -a irc --name "YouThere" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment