From 03e152cc2c7a359cffdf3287245389421f378e55 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 27 Mar 2012 15:06:23 +0100 Subject: [PATCH] Revert "Logging modules added (requires jsbot support for multi-listeners)." This reverts commit 9d5cf694a8d10881f2124098a5201decf6e9e78e. --- modules/logging.js | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 modules/logging.js diff --git a/modules/logging.js b/modules/logging.js deleted file mode 100644 index 2adea53..0000000 --- a/modules/logging.js +++ /dev/null @@ -1,41 +0,0 @@ -var logging = function(dbot) { - var logMessage = function(message) { - if(!(dbot.hasOwnProperty('log'))) { - dbot['log'] = []; - } - dbot.log.push([Date.now(), message]); - }; - - return { - 'onLoad': function() { - logMessage({ - 'type': 'LoggerEvent', - 'details': 'Logger loaded.' - }); - - return {}; - }, - - 'onDestroy': function() { - logMessage({ - 'type': 'LoggerEvent', - 'details': 'Logger unloaded.' - }); - }, - - 'listener': function(data, eventType) { - logMessage({ - 'type': 'IRCEvent', - 'details': { - 'eventType': eventType, - 'data': data - } - }); - }, - 'on': ['JOIN', 'PART', 'KICK', 'PRIVMSG', 'MODE'] - }; -}; - -exports.fetch = function(dbot) { - return logging(dbot); -};