mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fix 1
This commit is contained in:
@@ -1541,13 +1541,13 @@ async def zagraj_muzyke_mego_ludu(ctx):
|
|||||||
"""
|
"""
|
||||||
stats = {}
|
stats = {}
|
||||||
if ctx:
|
if ctx:
|
||||||
stat_iter = get_stats(ctx, 100)
|
stat_iter = get_stats(ctx, 1500)
|
||||||
async for name, how_many in stat_iter:
|
async for name, how_many in stat_iter:
|
||||||
if len(name) > 3:
|
if len(name) > 3:
|
||||||
stats[name] = how_many
|
stats[name] = how_many
|
||||||
|
|
||||||
sorted_stats = sorted(stats.items(), key=lambda x: x[1])
|
sorted_stats = sorted(stats.items(), key=lambda x: x[1])
|
||||||
sorted_stats = list(reversed(sorted_stats))
|
|
||||||
print(sorted_stats)
|
print(sorted_stats)
|
||||||
reply = "Wygenerowana plejlista:\n"
|
reply = "Wygenerowana plejlista:\n"
|
||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
|
|||||||
Reference in New Issue
Block a user