- Added a module to load addons
- Added an example module that just extends the socketIO connection to add an console log
This commit is contained in:
Logan Cusano
2024-03-10 04:03:40 -04:00
parent b209a672c6
commit 7d4f48a446
3 changed files with 48 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { nodeIo, app, server } from './modules/socketServer.mjs';
import { loadAddons } from './modules/addonManager.mjs';
import { serverClient, addEnabledEventListeners } from './discordBot/discordBot.mjs';
import dotenv from 'dotenv';
@@ -6,4 +7,7 @@ dotenv.config()
// Add objects to the others
serverClient.nodeIo = nodeIo;
nodeIo.serverClient = serverClient;
nodeIo.serverClient = serverClient;
// Load the addons
loadAddons(nodeIo);