From 6c919081c73c94f7dc49273c7bd6b83cbda92ba7 Mon Sep 17 00:00:00 2001 From: yuki Date: Wed, 8 Oct 2025 23:20:33 -0300 Subject: [PATCH] rename collage method --- commands/_top.py | 8 ++++++++ commands/collage.py | 8 ++++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 commands/_top.py diff --git a/commands/_top.py b/commands/_top.py new file mode 100644 index 0000000..63e3b20 --- /dev/null +++ b/commands/_top.py @@ -0,0 +1,8 @@ +import nerimity + +import bot + +def setup(bot: bot.Bot): + @bot.command(name="topartists", aliases=["ta","topartist"]) + @bot.slash_command(name="topartists") + def topartists(ctx: nerimity.Context, timeframe) diff --git a/commands/collage.py b/commands/collage.py index 4f1e3e1..0ea5a65 100644 --- a/commands/collage.py +++ b/commands/collage.py @@ -8,7 +8,7 @@ import utils as u # from catbox_async_uploader.catbox_async_uploader.enums import LitterboxDuration # from pyzxz import ZeroXZero -async def create_chart(bot: bot.Bot, ctx: nerimity.Context, entity: str, size: str = "3x3", timeframe: str = "7day", username: str = None): +async def send_collage(bot: bot.Bot, ctx: nerimity.Context, entity: str, size: str = "3x3", timeframe: str = "7day", username: str = None): temp_msg = None if 'x' not in size: @@ -96,7 +96,7 @@ def setup(bot: bot.Bot): @bot.command(name="chart", aliases=["c", "chartalbum", "albumchart", "collage"]) @bot.slash_command(name="chartalbum", description="Generate an album collage.") async def chartalbum(ctx: nerimity.Context, size: str = "3x3", timeframe: str = "7day", username: str = None): - await create_chart( + await send_collage( bot = bot, ctx = ctx, entity = "album", @@ -108,7 +108,7 @@ def setup(bot: bot.Bot): @bot.command(name="artistchart", aliases=["ac", "ca", "chartartist", "artistcollage"]) @bot.slash_command(name="chartartist", description="Generate an artist collage.") async def chartartist(ctx: nerimity.Context, size: str = "3x3", timeframe: str = "7day", username: str = None): - await create_chart( + await send_collage( bot = bot, ctx = ctx, entity = "artist", @@ -120,7 +120,7 @@ def setup(bot: bot.Bot): @bot.command(name="trackchart", aliases=["tc", "ct", "charttrack", "chartracks", "songchart", "chartsong", "trackcollage", "songcollage"]) @bot.slash_command(name="charttrack", description="Generate a track/song collage.") async def charttrack(ctx: nerimity.Context, size: str = "3x3", timeframe: str = "7day", username: str = None): - await create_chart( + await send_collage( bot = bot, ctx = ctx, entity = "track",