// var _ = require('underscore');

module.exports = function(robot){

	robot.respond(/last beer/i, function(res){
		var response = 'My last eber was from ' + robot.brain.get('lastBeerFrom');
		if (robot.auth.isAdmin(res.message.user))
			res.reply(response + '.  I\'ve had ' + robot.brain.get('totalBeersHad'));
		else
			res.reply(response);
	});

	robot.respond(/userid/i, function(res){
		if (robot.auth.isAdmin(res.message.user))
			res.reply('Your user ID is ' + res.message.user.id);
	});

	robot.respond(/userid (.*)/i, function(res){
		robot.auth.isAdmin(res.message.user) || return;
		
		var users = {};
		var apiUrl = robot.brain.get('slack-api-url') + 'users.list';
		var userName = res.match[1];
		if (userName[0] === '@')
			userName = userName.substring(1);

		robot.http(apiUrl).get(function(err, response, body){
			res.send(JSON.stringify(body));
		});

		//res.reply(userName + '\'s user ID is ' + );
	});
}
@@ -482,32 +482,35 @@
 ser.id);%0A%09%7D);%0A%0A%09
+// 
 robot.respond(/u
@@ -539,16 +539,19 @@
 (res)%7B%0A%09
+// 
 %09robot.a
@@ -595,16 +595,19 @@
 rn;%0A%09%09%0A%09
+// 
 %09var use
@@ -616,16 +616,19 @@
  = %7B%7D;%0A%09
+// 
 %09var api
@@ -683,16 +683,19 @@
 list';%0A%09
+// 
 %09var use
@@ -717,16 +717,19 @@
 ch%5B1%5D;%0A%09
+// 
 %09if (use
@@ -747,16 +747,19 @@
 = '@')%0A%09
+// 
 %09%09userNa
@@ -788,16 +788,19 @@
 g(1);%0A%0A%09
+// 
 %09robot.h
@@ -847,16 +847,19 @@
 body)%7B%0A%09
+// 
 %09%09res.se
@@ -885,23 +885,29 @@
 ody));%0A%09
+// 
 %09%7D);%0A%0A%09
+// 
 %09//res.r
@@ -942,17 +942,20 @@
  is ' + );%0A%09
+// 
 %7D);%0A%7D

Comment out potential offender