Spaces:
Sleeping
Sleeping
Yohaan Seth Nathan commited on
Commit ·
15076a2
1
Parent(s): cf2f8df
Update tests.py
Browse files
tests.py
CHANGED
|
@@ -29,7 +29,7 @@ def download_yo():
|
|
| 29 |
|
| 30 |
def run_bot(CONFIG, logging_level):
|
| 31 |
lishogi_bot.logger.info(lishogi_bot.intro())
|
| 32 |
-
li = lishogi_bot.lishogi.Lishogi(
|
| 33 |
|
| 34 |
user_profile = li.get_profile()
|
| 35 |
username = user_profile["username"]
|
|
@@ -96,7 +96,6 @@ def test_bot():
|
|
| 96 |
lishogi_bot.logger.info("Downloaded YaneuraOu for NNUE")
|
| 97 |
with open("./config.yml.default") as file:
|
| 98 |
CONFIG = yaml.safe_load(file)
|
| 99 |
-
CONFIG["token"] = TOKEN
|
| 100 |
CONFIG["engine"]["dir"] = "./"
|
| 101 |
CONFIG["engine"]["name"] = "yo.exe"
|
| 102 |
CONFIG["engine"]["usi_options"]["BookFile"] = "no_book"
|
|
@@ -105,4 +104,4 @@ def test_bot():
|
|
| 105 |
|
| 106 |
|
| 107 |
if __name__ == "__main__":
|
| 108 |
-
test_bot()
|
|
|
|
| 29 |
|
| 30 |
def run_bot(CONFIG, logging_level):
|
| 31 |
lishogi_bot.logger.info(lishogi_bot.intro())
|
| 32 |
+
li = lishogi_bot.lishogi.Lishogi(TOKEN, CONFIG["url"], lishogi_bot.__version__, logging_level)
|
| 33 |
|
| 34 |
user_profile = li.get_profile()
|
| 35 |
username = user_profile["username"]
|
|
|
|
| 96 |
lishogi_bot.logger.info("Downloaded YaneuraOu for NNUE")
|
| 97 |
with open("./config.yml.default") as file:
|
| 98 |
CONFIG = yaml.safe_load(file)
|
|
|
|
| 99 |
CONFIG["engine"]["dir"] = "./"
|
| 100 |
CONFIG["engine"]["name"] = "yo.exe"
|
| 101 |
CONFIG["engine"]["usi_options"]["BookFile"] = "no_book"
|
|
|
|
| 104 |
|
| 105 |
|
| 106 |
if __name__ == "__main__":
|
| 107 |
+
test_bot()
|