Comments (17)
But I'll make the URL configurable soon.
from botli.
No. Currently the URL of lichess is hardcoded. But I should change that sometime.
If the API of PlayStrategy is compatible to the one of lichess, BotLi would theoretically work there too. But I have not dealt with any other site than lichess.
from botli.
Okay, so if i'd change that myself with a fork of your repository, which files must I change?
And yes, PlayStrategy's API is compatible to Lichess' APi :)
from botli.
Only api.py I guess
from botli.
Okay thx a lot!
from botli.
Now that I think about it, BotLi will probably crash if you try to play variants that are not also supported on Lichess.
Also python-chess, the library BotLi uses for pretty much everything, only supports the Lichess variants if I see it correctly.
from botli.
Oh okay but as there are many games but also lichess variants on PlayStrategy, we could use it at least for it
from botli.
Since 2c7b968 you can set the URL in the config.yml. Please give feedback how good this works.
from botli.
Thx! Where should I write the URL on the config file?
from botli.
Simply somewhere top level:
url: "https://playstrategy.org"
from botli.
Okay thank you very much I'll test it today :)
from botli.
I've got this error :
Traceback (most recent call last):
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\emman\Documents\ttBOT\Echecs\BOT\PSBOT\BOT\user_interface.py", line 316, in
ui.main()
File "C:\Users\emman\Documents\ttBOT\Echecs\BOT\PSBOT\BOT\user_interface.py", line 53, in main
self.handle_bot_status()
File "C:\Users\emman\Documents\ttBOT\Echecs\BOT\PSBOT\BOT\user_interface.py", line 102, in handle_bot_status
if 'bot:play' not in self.api.get_token_scopes(self.config['token']):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\site-packages\tenacity_init.py", line 289, in wrapped_f
return self(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\site-packages\tenacity_init.py", line 379, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\site-packages\tenacity_init_.py", line 314, in iter
return fut.result()
^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self.exception
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\site-packages\tenacity_init.py", line 382, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\emman\Documents\ttBOT\Echecs\BOT\PSBOT\BOT\api.py", line 168, in get_token_scopes
return response.json()[token]['scopes']
^^^^^^^^^^^^^^^
File "C:\Users\emman\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
from botli.
It looks like they are missing this endpoint: https://lichess.org/api#tag/OAuth/operation/tokenTest
from botli.
Oh yes PlayStrategy tokens are old lichess tokens : it doesn't comport the suffix "lip"....
from botli.
That alone would not be a problem. But the API is too old. It simply lacks endpoints that BotLi needs to work correctly.
from botli.
Oh okay...
from botli.
playstrategy not have API Bots online
from botli.
Related Issues (20)
- Matchmaking timeouts HOT 2
- Request: Different engines for different TCs HOT 4
- Request: Specific white and black books for each TC HOT 5
- Request: Accept challenges per TC HOT 2
- Error HOT 5
- Question about Tablebases HOT 2
- Matchmaking issue HOT 1
- CMD Shows This HOT 5
- Two instances of engine running at once?? HOT 13
- Reformat !eval and !printeval command HOT 11
- !eval and !printeval command reformat HOT 1
- Add support for Cloud Servers (Back4app) HOT 8
- Engine process died unexpectedly HOT 5
- Unexpected warnings during engine startup / game play HOT 6
- Matchmaking error HOT 1
- Dockerized version RuntimeError HOT 4
- Lichess sends invalid move HOT 13
- Dockerized version !printeval error HOT 5
- Serious issue or bug causing thread exception... HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botli.