Spaces:
Sleeping
Sleeping
TheYoBots commited on
Commit ·
8aa9785
1
Parent(s): 7c94fac
rectify 'pong error'
Browse files- lishogi-bot.py +0 -3
- lishogi.py +0 -3
lishogi-bot.py
CHANGED
|
@@ -108,9 +108,6 @@ def start(li, user_profile, engine_factory, config):
|
|
| 108 |
if event["type"] == "terminated":
|
| 109 |
break
|
| 110 |
|
| 111 |
-
elif event["type"] == "ping":
|
| 112 |
-
li.pong()
|
| 113 |
-
|
| 114 |
elif event["type"] == "connected":
|
| 115 |
for variant in challenge_config["variants"]:
|
| 116 |
logger.info("Creating seek for %s" % variant)
|
|
|
|
| 108 |
if event["type"] == "terminated":
|
| 109 |
break
|
| 110 |
|
|
|
|
|
|
|
|
|
|
| 111 |
elif event["type"] == "connected":
|
| 112 |
for variant in challenge_config["variants"]:
|
| 113 |
logger.info("Creating seek for %s" % variant)
|
lishogi.py
CHANGED
|
@@ -100,9 +100,6 @@ class Lishogi():
|
|
| 100 |
payload = {'variant': variant}
|
| 101 |
return self.api_post(ENDPOINTS["seek"], data=payload)
|
| 102 |
|
| 103 |
-
def pong(self):
|
| 104 |
-
return self.api_post(ENDPOINTS["pong"])
|
| 105 |
-
|
| 106 |
def get_profile(self):
|
| 107 |
profile = self.api_get(ENDPOINTS["profile"])
|
| 108 |
self.set_user_agent(profile["username"])
|
|
|
|
| 100 |
payload = {'variant': variant}
|
| 101 |
return self.api_post(ENDPOINTS["seek"], data=payload)
|
| 102 |
|
|
|
|
|
|
|
|
|
|
| 103 |
def get_profile(self):
|
| 104 |
profile = self.api_get(ENDPOINTS["profile"])
|
| 105 |
self.set_user_agent(profile["username"])
|