Skip to content

Commit e6d4afd

Browse files
committed
还原 bot.py 逻辑
1 parent b20c6a0 commit e6d4afd

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

bot/bot.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from common.log_helper import LOGGER
88
from common.mj_helper import meta_to_options, MjaiType
99
from common.utils import GameMode, BotNotSupportingMode
10-
from common.settings import Settings
1110

1211

1312
def reaction_convert_meta(reaction:dict, is_3p:bool=False):
@@ -110,13 +109,8 @@ def _init_bot_impl(self, mode:GameMode=GameMode.MJ4P):
110109
import riichi as libriichi
111110
self.mjai_bot = libriichi.mjai.Bot(engine, self.seat)
112111
elif mode == GameMode.MJ3P:
113-
settings = Settings()
114-
if settings.enable_ot2_for_3p:
115-
import riichi3p
116-
self.mjai_bot = riichi3p.online.Bot(self.seat)
117-
else:
118-
import libriichi3p
119-
self.mjai_bot = libriichi3p.mjai.Bot(engine, self.seat)
112+
import libriichi3p
113+
self.mjai_bot = libriichi3p.mjai.Bot(engine, self.seat)
120114
else:
121115
raise BotNotSupportingMode(mode)
122116

0 commit comments

Comments
 (0)