/*eslint-env node*/

//------------------------------------------------------------------------------
// node.js starter application for Bluemix
//------------------------------------------------------------------------------

// This application uses express as its web server
// for more info, see: http://expressjs.com
var express = require('express');

// cfenv provides access to your Cloud Foundry environment
// for more info, see: https://www.npmjs.com/package/cfenv
var cfenv = require('cfenv');

// create a new express server
var app = express();

// serve the files out of ./public as our main files
app.use(express.static(__dirname + '/public'));

// get the app environment from Cloud Foundry
var appEnv = cfenv.getAppEnv();

// start server on the specified port and binding host
app.listen(appEnv.port, '0.0.0.0', function() {

	// print a message when the server starts listening
  console.log("server starting on " + appEnv.url);
});

@@ -729,24 +729,506 @@
 tAppEnv();%0A%0A
+var Botkit = require('botkit')%0Avar controller = Botkit.slackbot(%7B%0A  debug: false%0A%7D)%0A%0Avar bot = controller.spawn(%7B%0A  token: %22xoxb-25814718499-sXqQ27waMvKPtS67uozQQ1mR%22%0A%7D).startRTM()%0A%0Acontroller.hears(%5B'(task%7Cstory%7Cepic%7Cdefect) (%5Cd*)'%5D,'ambient',function(bot, message)%7B%0A  var matches = message.text.match(/(task%7Cstory%7Cepic%7Cdefect) (%5Cd*)/i)%0A  var id = matches%5B2%5D%0A  bot.reply(message, %22https://jazz306.hursley.ibm.com:9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/%22+id)%0A%7D)%0A%0A
 // start ser

Add botkit and listener for RTC based messages