From bce44c7c052373a56f7eacfa09120faf6d378196 Mon Sep 17 00:00:00 2001 From: mei23 Date: Tue, 9 Oct 2018 04:55:27 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=90=E3=83=BC=E3=82=B7=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=81=AA=E3=82=89=E6=8E=A5=E7=B6=9A=E3=81=97?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/reversi/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/reversi/index.ts b/src/modules/reversi/index.ts index 364e51a..6f6423a 100644 --- a/src/modules/reversi/index.ts +++ b/src/modules/reversi/index.ts @@ -20,6 +20,8 @@ export default class ReversiModule implements IModule { private reversiConnection?: any; public install = (ai: 藍) => { + if (!config.reversiEnabled) return; + this.ai = ai; this.reversiConnection = new ReconnectingWebSocket(`${config.wsUrl}/games/reversi?i=${config.i}`, [], {