mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 14:37:21 +09:00
リバーシしないなら接続しないように
This commit is contained in:
parent
e07415f4cb
commit
bce44c7c05
@ -20,6 +20,8 @@ export default class ReversiModule implements IModule {
|
|||||||
private reversiConnection?: any;
|
private reversiConnection?: any;
|
||||||
|
|
||||||
public install = (ai: 藍) => {
|
public install = (ai: 藍) => {
|
||||||
|
if (!config.reversiEnabled) return;
|
||||||
|
|
||||||
this.ai = ai;
|
this.ai = ai;
|
||||||
|
|
||||||
this.reversiConnection = new ReconnectingWebSocket(`${config.wsUrl}/games/reversi?i=${config.i}`, [], {
|
this.reversiConnection = new ReconnectingWebSocket(`${config.wsUrl}/games/reversi?i=${config.i}`, [], {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user