Open dosoft opened 4 years ago
seems like u started league implementation and the last commits cause 'error 404' retrieving league info.
@dosoft oh yes, recenlty I added a basic implementation for it, not polished though, but it was working last time I checked.
How did you try it? You can give a try with docker, but make sure your CoC Token matches your current IP address:
docker run -it --env-file docker_env --restart always -d --name clashogram mehdisadeghi/clashogram
The docker_env
file should look like:
COC_API_TOKEN=sometoken
COC_CLAN_TAG=#sometag
TELEGRAM_BOT_TOKEN=somemoretoken
TELEGRAM_CHAT_ID=@somechannel
btw, the coc servers are very often in maintenance mode (it shouldn't produce 404 though), so try in in different times.
I don't remember exactly and far from PC to check this, but AFAIR it was a _get_currentleague_endpoint, returning error 404
Moreover, I've tested this endpoint on the supercell dev site and even there it was 404. My wild guess was that it return this error in case if there is no active league war...
@dosoft yes, you are right. So please try with a clantag which is participating in the league and see whether it works for you.
It would be great to monitor 'war league' if the clan participates in it. There is an API for this:
Retrieve information about clan's current clan war league group
Retrieve information about individual clan war league war