Closed ttBOT-on-Lichess closed 1 year ago
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.
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 :)
Only api.py I guess
Okay thx a lot!
But I'll make the URL configurable soon.
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.
Oh okay but as there are many games but also lichess variants on PlayStrategy, we could use it at least for it
Since 2c7b968 you can set the URL in the config.yml. Please give feedback how good this works.
Thx! Where should I write the URL on the config file?
Simply somewhere top level:
url: "https://playstrategy.org"
Okay thank you very much I'll test it today :)
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
It looks like they are missing this endpoint: https://lichess.org/api#tag/OAuth/operation/tokenTest
Oh yes PlayStrategy tokens are old lichess tokens : it doesn't comport the suffix "lip"....
That alone would not be a problem. But the API is too old. It simply lacks endpoints that BotLi needs to work correctly.
Oh okay...
playstrategy not have API Bots online
Hi! Is it possible to use BotLi on another site like playstrategy.org ? Ist is possible to change eg url or other things in order to have the ability to use it on PlayStrategy?