Skip to content

Instantly share code, notes, and snippets.

@meatballhat
Last active August 29, 2015 14:16
Show Gist options
  • Save meatballhat/05fd71dbd2c1a791093a to your computer and use it in GitHub Desktop.
Save meatballhat/05fd71dbd2c1a791093a to your computer and use it in GitHub Desktop.
Slackin hacks
diff --git a/Procfile b/Procfile
index 769bed3..d2757c8 100644
--- a/Procfile
+++ b/Procfile
@@ -1 +1 @@
-web: bin/slackin --port $PORT $SLACK_SUBDOMAIN $SLACK_API_TOKEN
+web: make && bin/slackin --port $PORT $SLACK_SUBDOMAIN $SLACK_API_TOKEN
diff --git a/lib/slack-invite.js b/lib/slack-invite.js
index 3b83f97..37bf220 100644
--- a/lib/slack-invite.js
+++ b/lib/slack-invite.js
@@ -15,6 +15,7 @@ export default function invite({ org, token, email, channel }, fn){
.type('form')
.send(data)
.end(function(err, res){
+ console.log(`Invite response: ${res.status}`);
if (err) return fn(err);
if (200 != res.status) {
fn(new Error(`Invalid response ${res.status}.`));
diff --git a/6e72d80..975b321 b/975b321
index 6e72d80..975b321 100644
--- a/6e72d80..975b321
+++ b/975b321
@@ -4,15 +4,7 @@
// we do this in addition to the polyfill
// required in lib/index to support `git clone`
// based installations (eg: heroku deploy)
-require('6to5/register')({
- // prevent issues with global installs
- // and 6to5 ignoring any occurrence of
- // 'node_modules' by default, including
- // /usr/local/lib/node_modules, which
- // makes it noop entirely
- ignore: false,
- only: /slackin\/lib\//
-});
+require('6to5/register');
var pkg = require('../package');
var program = require('commander');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment