config serverMonitoringが効かないのを修正

This commit is contained in:
mei23 2018-10-09 03:22:09 +09:00
parent 6c7fe8877f
commit e07415f4cb
2 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@ type Config = {
apiUrl: string;
keywordEnabled: boolean;
reversiEnabled: boolean;
serverMonitoring: boolean;
mecab?: string;
};

View file

@ -20,6 +20,8 @@ export default class ServerModule implements IModule {
private statsLogs: any[] = [];
public install = (ai: ) => {
if (!config.serverMonitoring) return;
this.ai = ai;
this.connection = new ReconnectingWebSocket(`${config.wsUrl}/server-stats`, [], {