From 3c7dd523f0446f69c61570a039209039d0a84c80 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Thu, 30 Mar 2017 21:35:07 -0400 Subject: [PATCH] Reverting change to how we cache triggers due to foreach loop. --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index f05b3f4..bd39a41 100644 --- a/server.js +++ b/server.js @@ -106,7 +106,7 @@ require("fs").readdirSync('./triggers/').forEach(function(file) { // Load the trigger if it's a script. if (path.extname(file) == '.js') { logger.info(`Loaded trigger: ${file}`); - cachedTriggers[file] = require(`./triggers/${file}`); + cachedTriggers.push(require(`./triggers/${file}`)); } });