/ Gruntfile.js
Gruntfile.js
 1  var Ai=require("./AI.js");
 2  var bot=new Ai("Andy");
 3  
 4  module.exports = function(grunt) {
 5  	grunt.initConfig({
 6  		jshint: {
 7  			all: ['*.js']
 8  		},
 9  		bootlint: {
10  			options: {
11  				stoponerror: false,
12  				relaxerror: []
13  			},
14  			files: ['index.html','demo/index.html']
15  		}
16  	});	
17  	grunt.loadNpmTasks('grunt-contrib-jshint');
18  	grunt.loadNpmTasks('grunt-bootlint');
19  	grunt.registerTask('Talk to AI', 'Preforms a status check for the AI by asking the bot how it is doing.', function() {
20  		grunt.log.writeln('{ "How are you?"');
21  		grunt.log.writeln('} "'+bot.reactTo("How are you?")+'"');
22  	});
23  	grunt.registerTask('default', ['jshint','Talk to AI','bootlint']);
24  };