Added persistent rescheduling of nowPlaying after server goes down.
This commit is contained in:
parent
179a10fb72
commit
a41541d07b
10 changed files with 124 additions and 25 deletions
|
|
@ -19,6 +19,7 @@ const connectedUser = require('./connectedUser');
|
|||
const queue = require('./media/queue');
|
||||
const flairModel = require('../../schemas/flairSchema');
|
||||
const permissionModel = require('../../schemas/permissionSchema');
|
||||
const channelModel = require('../../schemas/channel/channelSchema');
|
||||
|
||||
module.exports = class{
|
||||
constructor(server, chanDB){
|
||||
|
|
@ -27,7 +28,7 @@ module.exports = class{
|
|||
this.tokeCommands = chanDB.tokeCommands;
|
||||
//Keeping these in a map was originally a vestige but it's more preformant than an array or object so :P
|
||||
this.userList = new Map();
|
||||
this.queue = new queue(server, this);
|
||||
this.queue = new queue(server, chanDB, this);
|
||||
}
|
||||
|
||||
async handleConnection(userDB, chanDB, socket){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue