Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor war league #29

Open
dosoft opened this issue Jul 9, 2020 · 5 comments
Open

Monitor war league #29

dosoft opened this issue Jul 9, 2020 · 5 comments

Comments

@dosoft
Copy link

dosoft commented Jul 9, 2020

It would be great to monitor 'war league' if the clan participates in it. There is an API for this:

  • /clans/{clanTag}/currentwar/leaguegroup

Retrieve information about clan's current clan war league group

  • /clanwarleagues/wars/{warTag}

Retrieve information about individual clan war league war

@dosoft
Copy link
Author

dosoft commented Dec 18, 2020

seems like u started league implementation and the last commits cause 'error 404' retrieving league info.

@mehdisadeghi
Copy link
Owner

@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

@mehdisadeghi
Copy link
Owner

btw, the coc servers are very often in maintenance mode (it shouldn't produce 404 though), so try in in different times.

@dosoft
Copy link
Author

dosoft commented Dec 18, 2020

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...

@mehdisadeghi
Copy link
Owner

@dosoft yes, you are right. So please try with a clantag which is participating in the league and see whether it works for you.

mehdisadeghi added a commit that referenced this issue Dec 23, 2020
League support is still a WIP.
Repository owner deleted a comment from floatingdev Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants