@bot.command()
async def rb(ctx):
r = requests.get('https://tanksblitz.ru/ru/api/rating-leaderboards/league/0/top/', headers = HEADERS)
data = r.json()
for d in data['result']:
await ctx.send('[{}] {} — {}'.format(*(d[i] for i in ['clan_tag','nickname','score'])))
message = "\n".join(f"[{elem['clan_tag']}] {elem['nickname']} - {elem['score']}" for elem in data['result'])
await ctx.send(message)
[PWNZ] Luc1que_ - 6585
[CONTX] boonchlchi - 6478
[2XX] perdyyn - 6421
[MERCV] BrokenSouI - 6390
[CUMZN] Ego_281 - 6348
[CXNDY] lex_2785 - 6331
[A_FOX] nE_BuHoBeH_B_cJIuBe_ - 6300
[SOULC] Afonin17 - 6292
[_S0L_] TTeJlbMeHbKa - 6269
[BRAWO] RenamedUser_69163298 - 6251
[NAVI] MOJIODOU_3JIODEU_99 - 6215
[PINK-] Sk1leks_YouTube - 6209
[ZOMBI] lllllllllllllIlIlIlIIl - 6183
[] V_Solo_Slivay - 6152
[2_POY] extra_slim - 6144
[] KUBYK__RUBYK_ - 6095
[SUBRA] 1kiss21 - 6060
[UGKP] FURY_CHALLENGER_HELL_UAS - 6053
[VESNA] Andrej_kondrashyov - 6045
[KASTV] HoCKu_B_MoLoKe - 6036
[COURT] MuHucTP_OxPaHbI - 6017
[TR-L] 40peJlb - 6016
[PINK-] aHcKuJlbHblu_MeJloMaH - 6003
[] Grisha_X_x_X - 6001
[-DAM-] BcE_JLeHHa_9_6EcKO_He4Ha - 5958
[PWNZ] Riqwerty - 5913
[OXLKI] Evil_GrannYYY - 5904
[M_E_F] Smisterr - 5903
[] JlerKo_u_I7p0cTo - 5898
[ABQBA] yanakrzh - 5883