Whoops...
This commit is contained in:
parent
affdd98572
commit
001945a284
|
|
@ -40,7 +40,7 @@ tokeCommandSchema.pre('save', async function (next){
|
||||||
if(this.isModified("command")){
|
if(this.isModified("command")){
|
||||||
if(server.channelManager != null &&
|
if(server.channelManager != null &&
|
||||||
server.channelManager.chatHandler != null &&
|
server.channelManager.chatHandler != null &&
|
||||||
server.channelManager.chatHandler.chatPreprocessor == null){
|
server.channelManager.chatHandler.chatPreprocessor != null){
|
||||||
|
|
||||||
//Get server tokebot object
|
//Get server tokebot object
|
||||||
const tokebot = server.channelManager.chatHandler.chatPreprocessor.tokebot;
|
const tokebot = server.channelManager.chatHandler.chatPreprocessor.tokebot;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue