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}`, [], {