From 13852f59d3b5d4582d3320ddbdd068e784db995b Mon Sep 17 00:00:00 2001 From: yuki Date: Wed, 8 Oct 2025 23:06:12 -0300 Subject: [PATCH] fix chart generation --- commands/collage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/collage.py b/commands/collage.py index 018adbc..4ec7cb4 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(ctx: nerimity.Context, entity: str, size: str = "3x3", timeframe: str = "7day", username: str = None): +async def create_chart(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: @@ -97,6 +97,7 @@ def setup(bot: bot.Bot): @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( + bot = bot, ctx = ctx, entity = "album", size = size, @@ -108,6 +109,7 @@ def setup(bot: bot.Bot): @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( + bot = bot, ctx = ctx, entity = "artist", size = size,