Discord bot which ranks members in a specific clan according to how many cards of a certain level they have. Comparison starts from number of level 13 cards they have. If it's a tie, card count of the next card level lower is used (e.g. level 12 card count) and so on. This is useful for deciding order of players for boat defenses in clan wars 2.0
MIT License
2
stars
0
forks
source link
Feature: API to check remaining war attacks on current war #52
can call the endpoint /clans/{clanTag} to get list of current 50 players in clan
Medals corresponds to periodPoints in the API response. It is the number of medals won in current war day (NOT the total movement points over the week)
PlayersRemaining : players who haven't used all 4 attacks AND are currently in clan (deckUsedToday != 4 and CURRENTLY in clan)
DecksRemaining: the amount of decks that hasn't been used:
(50 - num_players_used_deck_left_clan) * 4 - sum_of("deckUsedToday for all CURRENT clan members")
Participated: players who used any attacks even if they're no longer in clan this week ( deckUsedToday != 0)
Steps:
Ingest clash royale currentriverrace and clan API and format it into appropriate data structure
Transform the ingested data into the summary table above
Notes on Response body
Can use the following endpoint to determine the clans that are participating in the riverwar respective to the clan tag as the input:
Note:
How to get remainingPlayer
Note: != 0 can tell us how many minis we can bring into the clan
Output requirements
Note:
/clans/{clanTag}
to get list of current 50 players in clanperiodPoints
in the API response. It is the number of medals won in current war day (NOT the total movement points over the week)(50 - num_players_used_deck_left_clan) * 4 - sum_of("deckUsedToday for all CURRENT clan members")
Steps: