From fe57dfd1f679fd18dcb0749fb2b7e039d4b9eabe Mon Sep 17 00:00:00 2001 From: Astra Date: Tue, 8 May 2018 00:48:25 -0400 Subject: [PATCH] move goodies outside of preload() --- plugin.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/plugin.js b/plugin.js index 849b722..5446873 100644 --- a/plugin.js +++ b/plugin.js @@ -18,17 +18,18 @@ function __epprint(str) { console.log(`%c[EndPwn]%c ` + str, 'font-weight:bold;color:#0cc', ''); } +// define this with a default value as a fallback +var __goodies = { + guilds: [], + devs: [], + bots: [], + users: {} +}; + exports = { preload: function () { - // define this with a default value as a fallback - var __goodies = { - guilds: [], - bots: [], - users: {} - }; - function fetchGoodies() { // fetch goodies.json __epprint('fetching endpwn cutomizer data from server...');