- Added a module to load addons - Added an example module that just extends the socketIO connection to add an console log
13 lines
390 B
JavaScript
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); |