More work decoupling chatPreprocessor.js from chatHandler.js
This commit is contained in:
parent
0ed1c0dd89
commit
ad3cdd38a3
|
|
@ -45,7 +45,6 @@ class chatHandler{
|
|||
* Child Command Pre-Processor Object
|
||||
*/
|
||||
this.chatPreprocessor = new chatPreprocessor(
|
||||
server,
|
||||
new commandProcessor(server, this),
|
||||
new tokebot(server, this)
|
||||
);
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ const validator = require('validator');//No express here, so regular validator i
|
|||
|
||||
//Local Imports
|
||||
const linkUtils = require('../utils/linkUtils');
|
||||
const commandProcessor = require('./channel/commandProcessor');
|
||||
|
||||
/**
|
||||
* Class containing global server-side chat/command pre-processing logic
|
||||
|
|
@ -26,14 +27,9 @@ const linkUtils = require('../utils/linkUtils');
|
|||
class chatPreprocessor{
|
||||
/**
|
||||
* Instantiates a commandPreprocessor object
|
||||
* @param {channelManager} server - Parent Server Object
|
||||
* @param {commandProcessor} - Child Command Processor Object. Contains functions named after commands.
|
||||
*/
|
||||
constructor(server, commandProcessor, tokebot){
|
||||
/**
|
||||
* Parent Server Object
|
||||
*/
|
||||
this.server = server;
|
||||
|
||||
constructor(commandProcessor, tokebot){
|
||||
/**
|
||||
* Child Command Processor Object. Contains functions named after commands.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue