/* jshint node: true */
'use strict';

var path = require('path');
var log = require('./lib/log');

module.exports = function(robot) {
  log('loading');
  robot.loadFile(path.resolve(__dirname, 'scripts'), 'slack-github-issues');
};

/* jshint node: true */
'use strict';

var path = require('path');
var log = require('./lib/log');

module.exports = function(robot) {
  log('loading');
  robot.loadFile(path.resolve(__dirname, 'scripts'), 'slack-github-issues.js');
};

Add .js ext to load scripts/slack-github-issues
Add .js ext to load scripts/slack-github-issues

This is why Hubot wasn't finding the script. `robot.loadFile` will only try to
load the file if it has an extension in `require.extensions`.
