webot-chat-wall
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -41,2 +41,7 @@ // Generated on 2014-01-07 using generator-nodejs 0.1.0 | ||
} | ||
}, | ||
bumpup: { | ||
files: [ | ||
'package.json' | ||
] | ||
} | ||
@@ -49,2 +54,3 @@ }); | ||
grunt.loadNpmTasks('grunt-mocha-cli'); | ||
grunt.loadNpmTasks('grunt-bumpup'); | ||
@@ -51,0 +57,0 @@ grunt.registerTask('test', ['complexity', 'jshint', 'mochacli', 'watch']); |
@@ -5,3 +5,5 @@ var Webot = require('webot').Webot; | ||
module.exports = function createBot(events, guests, messages) { | ||
// The models are passed via function, since it may not be available when the bot is created | ||
module.exports = function createBot(getModels) { | ||
var webot = new Webot(); | ||
@@ -19,2 +21,7 @@ | ||
handler: function joinHandler(info, next) { | ||
var models = getModels(); | ||
var events = models.event; | ||
var guests = models.guest; | ||
var messages = models.message; | ||
var name = info.param[1]; | ||
@@ -21,0 +28,0 @@ events.findOne({name: name}, function (err, event) { |
{ | ||
"name": "webot-chat-wall", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "webot that works for a chat wall supporting RSVP and chat recording", | ||
@@ -34,4 +34,5 @@ "main": "index.js", | ||
"waterline": "~0.9.11", | ||
"sails-memory": "~0.9.1" | ||
"sails-memory": "~0.9.1", | ||
"grunt-bumpup": "~0.5.0" | ||
} | ||
} | ||
} |
8047
196
10