Files
DRBv3/server/server.js
Logan Cusano 7d4f48a446 #6 The bones
- Added a module to load addons
- Added an example module that just extends the socketIO connection to add an console log
2024-03-10 04:03:40 -04:00

13 lines
390 B
JavaScript

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';
dotenv.config()
// Add objects to the others
serverClient.nodeIo = nodeIo;
nodeIo.serverClient = serverClient;
// Load the addons
loadAddons(nodeIo);