diff --git a/modules/remind/remind.js b/modules/remind/remind.js index 6fe5e47..7ef9a2b 100644 --- a/modules/remind/remind.js +++ b/modules/remind/remind.js @@ -46,6 +46,7 @@ var remind = function(dbot) { event.reply("I've set the timer."); }.bind(this), 'startTimer': function(server, channel, time, starter, target, message) { + dbot.say(server,channel,"startTimer called!"); var cb = function() { if(message) { if(starter === target) { @@ -100,8 +101,16 @@ var remind = function(dbot) { dbot.db.remindTimers = {}; return; } - for(var prop in dbot.db.remindTimers) { - dbot.say("tripsit","#epow0","Found saved timer "+prop); + dbot.say("tripsit","#epow0","dbot.db.remindTimers has length "+Object.keys(dbot.db.remindTimers).length); + for(var i=0;i