From 063fb365673aa36dde1aaeae424269dbbbafb96c Mon Sep 17 00:00:00 2001 From: amki Date: Mon, 6 Apr 2015 21:25:33 +0200 Subject: [PATCH] still doesn't work --- modules/remind/remind.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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