Started work on flair

This commit is contained in:
rainbownapkin 2024-11-19 22:07:24 -05:00
parent 0fcd72b063
commit 4b4cb2ed3d
9 changed files with 149 additions and 10 deletions

View file

@ -25,6 +25,7 @@ const mongoose = require('mongoose');
//Define Local Imports
const statModel = require('./schemas/statSchema');
const flairModel = require('./schemas/flairSchema');
const channelManager = require('./app/channel/channelManager');
const indexRouter = require('./routers/indexRouter');
const registerRouter = require('./routers/registerRouter');
@ -105,6 +106,9 @@ app.use(express.static(path.join(__dirname, '../www')));
//Increment launch counter
statModel.incrementLaunchCount();
//Load flairs
flairModel.loadDefaults();
//Hand over general-namespace socket.io connections to the channel manager
io.on("connection", (socket) => {channelManager.handleConnection(io, socket)} );